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

Allows modifications for a specific model for every supported serializer.
Наследование: ISerializerModifier
Показать файл Открыть проект

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

Метод Описание
DeserializeMember ( ISerializationContext context, MemberValue memberValue ) : void

Allows the customization of the provided MemberValue.

OnDeserialized ( ISerializationContext context, object model ) : void

Called when the object is deserialized.

OnDeserializing ( ISerializationContext context, object model ) : void

Called when the object is about to be deserialized.

OnSerialized ( ISerializationContext context, object model ) : void

Called when the object is serialized.

OnSerializing ( ISerializationContext context, object model ) : void

Called when the object is about to be serialized.

SerializeMember ( ISerializationContext context, MemberValue memberValue ) : void

Allows the customization of the provided MemberValue.

ShouldIgnoreMember ( ISerializationContext context, object model, MemberValue memberValue ) : bool

Determines whether the specified member should be ignored.

ShouldSerializeAsCollection ( ) : bool?

Returns whether the serializer should serialize this model as a collection.

ShouldSerializeAsDictionary ( ) : bool?

Returns whether the serializer should serialize this model as a dictionary.

ShouldSerializeMemberUsingParse ( MemberValue memberValue ) : bool?

Returns whether the serializer should serialize the member using ToString(IFormatProvider) and Parse(string, IFormatProvider).

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

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

Allows the customization of the provided MemberValue.
public DeserializeMember ( ISerializationContext context, MemberValue memberValue ) : void
context ISerializationContext The context.
memberValue MemberValue The member value.
Результат void

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

Called when the object is deserialized.
public OnDeserialized ( ISerializationContext context, object model ) : void
context ISerializationContext The context.
model object The model.
Результат void

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

Called when the object is about to be deserialized.
public OnDeserializing ( ISerializationContext context, object model ) : void
context ISerializationContext The context.
model object The model.
Результат void

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

Called when the object is serialized.
public OnSerialized ( ISerializationContext context, object model ) : void
context ISerializationContext The context.
model object The model.
Результат void

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

Called when the object is about to be serialized.
public OnSerializing ( ISerializationContext context, object model ) : void
context ISerializationContext The context.
model object The model.
Результат void

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

Allows the customization of the provided MemberValue.
public SerializeMember ( ISerializationContext context, MemberValue memberValue ) : void
context ISerializationContext The context.
memberValue MemberValue The member value.
Результат void

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

Determines whether the specified member should be ignored.
public ShouldIgnoreMember ( ISerializationContext context, object model, MemberValue memberValue ) : bool
context ISerializationContext The context.
model object The model.
memberValue MemberValue The member value.
Результат bool

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

Returns whether the serializer should serialize this model as a collection.
public ShouldSerializeAsCollection ( ) : bool?
Результат bool?

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

Returns whether the serializer should serialize this model as a dictionary.
public ShouldSerializeAsDictionary ( ) : bool?
Результат bool?

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

Returns whether the serializer should serialize the member using ToString(IFormatProvider) and Parse(string, IFormatProvider).
public ShouldSerializeMemberUsingParse ( MemberValue memberValue ) : bool?
memberValue MemberValue
Результат bool?