C# Класс Catel.Runtime.Serialization.SerializationManager

Manager which is responsible for discovering what fields and properties of an object should be serialized.
Наследование: ISerializationManager
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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.

Защищенные методы

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

Finds the serializer modifiers.

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

Метод Описание
GetCacheKey ( Type type, bool additionalValue ) : string
GetNameOverrideForSerialization ( MemberInfo memberInfo ) : string

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

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

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.
Результат void

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

Clears the specified type from cache so it will be evaluated.
The is null.
public Clear ( Type type ) : void
type System.Type The type.
Результат void

FindSerializerModifiers() защищенный Метод

Finds the serializer modifiers.
protected FindSerializerModifiers ( Type type ) : List
type System.Type The type.
Результат List

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

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.
Результат MemberMetadata>.Dictionary

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

Gets the catel properties to serialize.
The is null.
public GetCatelPropertiesToSerialize ( Type type ) : MemberMetadata>.Dictionary
type System.Type The type.
Результат MemberMetadata>.Dictionary

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

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.
Результат HashSet

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

Gets the field names.
The is null.
public GetFieldNames ( Type type ) : HashSet
type System.Type Type of the model.
Результат HashSet

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

Gets the fields
The is null.
public GetFields ( Type type ) : MemberMetadata>.Dictionary
type System.Type Type of the model.
Результат MemberMetadata>.Dictionary

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

Gets the fields to serialize for the specified object.
The is null.
public GetFieldsToSerialize ( Type type ) : MemberMetadata>.Dictionary
type System.Type The type.
Результат MemberMetadata>.Dictionary

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

Gets the regular properties.
The is null.
public GetRegularProperties ( Type type ) : MemberMetadata>.Dictionary
type System.Type Type of the model.
Результат MemberMetadata>.Dictionary

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

Gets the properties to serialize for the specified object.
The is null.
public GetRegularPropertiesToSerialize ( Type type ) : MemberMetadata>.Dictionary
type System.Type The type.
Результат MemberMetadata>.Dictionary

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

Gets the regular property names.
The is null.
public GetRegularPropertyNames ( Type type ) : HashSet
type System.Type Type of the model.
Результат HashSet

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

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.
Результат ISerializerModifier[]

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

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.
Результат void

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

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.
Результат void