C# Class Catel.Runtime.Serialization.SerializationManager

Manager which is responsible for discovering what fields and properties of an object should be serialized.
Inheritance: ISerializationManager
Show file Open project: Catel/Catel Class Usage Examples

Public Methods

Method Description
AddSerializerModifier ( Type type, Type serializerModifierType ) : void

Adds the serializer modifier for a specific type.

Clear ( Type type ) : void

Clears the specified type from cache so it will be evaluated.

GetCatelProperties ( Type type, bool includeModelBaseProperties = false ) : MemberMetadata>.Dictionary

Gets the catel properties.

GetCatelPropertiesToSerialize ( Type type ) : MemberMetadata>.Dictionary

Gets the catel properties to serialize.

GetCatelPropertyNames ( Type type, bool includeModelBaseProperties = false ) : HashSet

Gets the catel property names.

GetFieldNames ( Type type ) : HashSet

Gets the field names.

GetFields ( Type type ) : MemberMetadata>.Dictionary

Gets the fields

GetFieldsToSerialize ( Type type ) : MemberMetadata>.Dictionary

Gets the fields to serialize for the specified object.

GetRegularProperties ( Type type ) : MemberMetadata>.Dictionary

Gets the regular properties.

GetRegularPropertiesToSerialize ( Type type ) : MemberMetadata>.Dictionary

Gets the properties to serialize for the specified object.

GetRegularPropertyNames ( Type type ) : HashSet

Gets the regular property names.

GetSerializerModifiers ( Type type ) : ISerializerModifier[]

Gets the serializer modifiers for the specified type. Note that the order is important because the modifiers will be called in the returned order during serialization and in reversed order during deserialization.

RemoveSerializerModifier ( Type type, Type serializerModifierType ) : void

Removes the serializer modifier for a specific type.

Warmup ( Type type ) : void

Warmups the specified type by calling all the methods for the specified type.

Protected Methods

Method Description
FindSerializerModifiers ( Type type ) : List

Finds the serializer modifiers.

Private Methods

Method Description
GetCacheKey ( Type type, bool additionalValue ) : string
GetNameOverrideForSerialization ( MemberInfo memberInfo ) : string

Method Details

AddSerializerModifier() public method

Adds the serializer modifier for a specific type.
The is null. The is null.
public AddSerializerModifier ( Type type, Type serializerModifierType ) : void
type System.Type The type.
serializerModifierType System.Type Type of the serializer modifier.
return void

Clear() public method

Clears the specified type from cache so it will be evaluated.
The is null.
public Clear ( Type type ) : void
type System.Type The type.
return void

FindSerializerModifiers() protected method

Finds the serializer modifiers.
protected FindSerializerModifiers ( Type type ) : List
type System.Type The type.
return List

GetCatelProperties() public method

Gets the catel properties.
The is null.
public GetCatelProperties ( Type type, bool includeModelBaseProperties = false ) : MemberMetadata>.Dictionary
type System.Type Type of the model.
includeModelBaseProperties bool if set to true, also include model base properties.
return MemberMetadata>.Dictionary

GetCatelPropertiesToSerialize() public method

Gets the catel properties to serialize.
The is null.
public GetCatelPropertiesToSerialize ( Type type ) : MemberMetadata>.Dictionary
type System.Type The type.
return MemberMetadata>.Dictionary

GetCatelPropertyNames() public method

Gets the catel property names.
The is null.
public GetCatelPropertyNames ( Type type, bool includeModelBaseProperties = false ) : HashSet
type System.Type Type of the model.
includeModelBaseProperties bool if set to true, also include model base properties.
return HashSet

GetFieldNames() public method

Gets the field names.
The is null.
public GetFieldNames ( Type type ) : HashSet
type System.Type Type of the model.
return HashSet

GetFields() public method

Gets the fields
The is null.
public GetFields ( Type type ) : MemberMetadata>.Dictionary
type System.Type Type of the model.
return MemberMetadata>.Dictionary

GetFieldsToSerialize() public method

Gets the fields to serialize for the specified object.
The is null.
public GetFieldsToSerialize ( Type type ) : MemberMetadata>.Dictionary
type System.Type The type.
return MemberMetadata>.Dictionary

GetRegularProperties() public method

Gets the regular properties.
The is null.
public GetRegularProperties ( Type type ) : MemberMetadata>.Dictionary
type System.Type Type of the model.
return MemberMetadata>.Dictionary

GetRegularPropertiesToSerialize() public method

Gets the properties to serialize for the specified object.
The is null.
public GetRegularPropertiesToSerialize ( Type type ) : MemberMetadata>.Dictionary
type System.Type The type.
return MemberMetadata>.Dictionary

GetRegularPropertyNames() public method

Gets the regular property names.
The is null.
public GetRegularPropertyNames ( Type type ) : HashSet
type System.Type Type of the model.
return HashSet

GetSerializerModifiers() public method

Gets the serializer modifiers for the specified type. Note that the order is important because the modifiers will be called in the returned order during serialization and in reversed order during deserialization.
The is null.
public GetSerializerModifiers ( Type type ) : ISerializerModifier[]
type System.Type The type.
return ISerializerModifier[]

RemoveSerializerModifier() public method

Removes the serializer modifier for a specific type.
The is null. The is null.
public RemoveSerializerModifier ( Type type, Type serializerModifierType ) : void
type System.Type The type.
serializerModifierType System.Type Type of the serializer modifier.
return void

Warmup() public method

Warmups the specified type by calling all the methods for the specified type.
The is null.
public Warmup ( Type type ) : void
type System.Type The type.
return void