C# Class Catel.Runtime.Serialization.Xml.DataContractSerializerFactory.XmlSerializerTypeInfo

Class containing serializer type info.
Show file Open project: Catel/Catel

Public Methods

Method Description
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.

Private Methods

Method Description
IsSpecificTypeSpecialCollection ( Type type ) : bool

Method Details

AddCollectionAsHandled() public method

Adds the collection type as handled.
public AddCollectionAsHandled ( Type type ) : void
type System.Type The type.
return void

AddKnownType() public method

Adds the type to the list of known types.
public AddKnownType ( Type type ) : bool
type System.Type The type.
return bool

AddTypeAsHandled() public method

Adds the type as handled.
public AddTypeAsHandled ( Type type ) : void
type System.Type The type.
return void

ContainsKnownType() public method

Determines whether the specified type is a known type.
public ContainsKnownType ( Type type ) : bool
type System.Type The type.
return bool

IsCollectionAlreadyHandled() public method

Determines whether the specified collection type is already handled.
public IsCollectionAlreadyHandled ( Type type ) : bool
type System.Type The type.
return bool

IsSpecialCollectionType() public method

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.
return bool

IsTypeAlreadyHandled() public method

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.
return bool

IsTypeSerializable() public method

Determines whether the specified type is serializable.
The is null.
public IsTypeSerializable ( Type type ) : bool
type System.Type The type.
return bool

XmlSerializerTypeInfo() public method

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.
return System