C# Class Catel.Runtime.Serialization.SerializerModifierBase

Allows modifications for a specific model for every supported serializer.
Inheritance: ISerializerModifier
Mostra file Open project: Catel/Catel

Public Methods

Method 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 method

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

OnDeserialized() public method

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

OnDeserializing() public method

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

OnSerialized() public method

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

OnSerializing() public method

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

SerializeMember() public method

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

ShouldIgnoreMember() public method

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.
return bool

ShouldSerializeAsCollection() public method

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

ShouldSerializeAsDictionary() public method

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

ShouldSerializeMemberUsingParse() public method

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