C# Класс Catel.Runtime.Serialization.Xml.DataContractSerializerFactory.XmlSerializerTypeInfo

Class containing serializer type info.
Показать файл Открыть проект

Открытые методы

Метод Описание
AddCollectionAsHandled ( Type type ) : void

Adds the collection type as handled.

AddKnownType ( Type type ) : bool

Adds the type to the list of known types.

AddTypeAsHandled ( Type type ) : void

Adds the type as handled.

ContainsKnownType ( Type type ) : bool

Determines whether the specified type is a known type.

IsCollectionAlreadyHandled ( Type type ) : bool

Determines whether the specified collection type is already handled.

IsSpecialCollectionType ( Type type ) : bool

Determines whether the specified type is a special .NET collection type which should be added to the serialization known types. All generic collections in the System.Collections.Generic namespace are considered special. Besides these classes, the ObservableCollection{T} is also considered special.

IsTypeAlreadyHandled ( Type type ) : bool

Determines whether the specified type is already handled, which doesn't mean that it is also a known type. It means that the type has already been inspected once.

IsTypeSerializable ( Type type ) : bool

Determines whether the specified type is serializable.

XmlSerializerTypeInfo ( Type serializingType, Type typeToSerialize, IEnumerable additionalKnownTypes = null ) : System

Initializes a new instance of the XmlSerializerTypeInfo class.

Приватные методы

Метод Описание
IsSpecificTypeSpecialCollection ( Type type ) : bool

Описание методов

AddCollectionAsHandled() публичный Метод

Adds the collection type as handled.
public AddCollectionAsHandled ( Type type ) : void
type System.Type The type.
Результат void

AddKnownType() публичный Метод

Adds the type to the list of known types.
public AddKnownType ( Type type ) : bool
type System.Type The type.
Результат bool

AddTypeAsHandled() публичный Метод

Adds the type as handled.
public AddTypeAsHandled ( Type type ) : void
type System.Type The type.
Результат void

ContainsKnownType() публичный Метод

Determines whether the specified type is a known type.
public ContainsKnownType ( Type type ) : bool
type System.Type The type.
Результат bool

IsCollectionAlreadyHandled() публичный Метод

Determines whether the specified collection type is already handled.
public IsCollectionAlreadyHandled ( Type type ) : bool
type System.Type The type.
Результат bool

IsSpecialCollectionType() публичный Метод

Determines whether the specified type is a special .NET collection type which should be added to the serialization known types. All generic collections in the System.Collections.Generic namespace are considered special. Besides these classes, the ObservableCollection{T} is also considered special.
The is null.
public IsSpecialCollectionType ( Type type ) : bool
type System.Type The type.
Результат bool

IsTypeAlreadyHandled() публичный Метод

Determines whether the specified type is already handled, which doesn't mean that it is also a known type. It means that the type has already been inspected once.
public IsTypeAlreadyHandled ( Type type ) : bool
type System.Type The type.
Результат bool

IsTypeSerializable() публичный Метод

Determines whether the specified type is serializable.
The is null.
public IsTypeSerializable ( Type type ) : bool
type System.Type The type.
Результат bool

XmlSerializerTypeInfo() публичный Метод

Initializes a new instance of the XmlSerializerTypeInfo class.
public XmlSerializerTypeInfo ( Type serializingType, Type typeToSerialize, IEnumerable additionalKnownTypes = null ) : System
serializingType System.Type Type of the serializing.
typeToSerialize System.Type The type to serialize.
additionalKnownTypes IEnumerable The additional known types.
Результат System