C# Class Catel.Runtime.Serialization.SerializationManager

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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
FindSerializerModifiers ( Type type ) : List

Finds the serializer modifiers.

Private Methods

Méthode Description
GetCacheKey ( Type type, bool additionalValue ) : string
GetNameOverrideForSerialization ( MemberInfo memberInfo ) : string

Method Details

AddSerializerModifier() public méthode

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.
Résultat void

Clear() public méthode

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

FindSerializerModifiers() protected méthode

Finds the serializer modifiers.
protected FindSerializerModifiers ( Type type ) : List
type System.Type The type.
Résultat List

GetCatelProperties() public méthode

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.
Résultat MemberMetadata>.Dictionary

GetCatelPropertiesToSerialize() public méthode

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

GetCatelPropertyNames() public méthode

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.
Résultat HashSet

GetFieldNames() public méthode

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

GetFields() public méthode

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

GetFieldsToSerialize() public méthode

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

GetRegularProperties() public méthode

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

GetRegularPropertiesToSerialize() public méthode

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

GetRegularPropertyNames() public méthode

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

GetSerializerModifiers() public méthode

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.
Résultat ISerializerModifier[]

RemoveSerializerModifier() public méthode

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.
Résultat void

Warmup() public méthode

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.
Résultat void