C# Class Catel.Runtime.Serialization.SerializerModifierBase

Allows modifications for a specific model for every supported serializer.
Inheritance: ISerializerModifier
Afficher le fichier Open project: Catel/Catel

Méthodes publiques

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

Method Details

DeserializeMember() public méthode

Allows the customization of the provided MemberValue.
public DeserializeMember ( ISerializationContext context, MemberValue memberValue ) : void
context ISerializationContext The context.
memberValue MemberValue The member value.
Résultat void

OnDeserialized() public méthode

Called when the object is deserialized.
public OnDeserialized ( ISerializationContext context, object model ) : void
context ISerializationContext The context.
model object The model.
Résultat void

OnDeserializing() public méthode

Called when the object is about to be deserialized.
public OnDeserializing ( ISerializationContext context, object model ) : void
context ISerializationContext The context.
model object The model.
Résultat void

OnSerialized() public méthode

Called when the object is serialized.
public OnSerialized ( ISerializationContext context, object model ) : void
context ISerializationContext The context.
model object The model.
Résultat void

OnSerializing() public méthode

Called when the object is about to be serialized.
public OnSerializing ( ISerializationContext context, object model ) : void
context ISerializationContext The context.
model object The model.
Résultat void

SerializeMember() public méthode

Allows the customization of the provided MemberValue.
public SerializeMember ( ISerializationContext context, MemberValue memberValue ) : void
context ISerializationContext The context.
memberValue MemberValue The member value.
Résultat void

ShouldIgnoreMember() public méthode

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

ShouldSerializeAsCollection() public méthode

Returns whether the serializer should serialize this model as a collection.
public ShouldSerializeAsCollection ( ) : bool?
Résultat bool?

ShouldSerializeAsDictionary() public méthode

Returns whether the serializer should serialize this model as a dictionary.
public ShouldSerializeAsDictionary ( ) : bool?
Résultat bool?

ShouldSerializeMemberUsingParse() public méthode

Returns whether the serializer should serialize the member using ToString(IFormatProvider) and Parse(string, IFormatProvider).
public ShouldSerializeMemberUsingParse ( MemberValue memberValue ) : bool?
memberValue MemberValue
Résultat bool?