C# Class Platform.Xml.Serialization.SerializationContext

Maintains state required to perform serialization.
Datei anzeigen Open project: platformdotnet/Platform Class Usage Examples

Public Methods

Method Description
DeserializationEnd ( object obj ) : void
DeserializationStart ( object obj ) : void
GetCurrentMemberInfo ( ) : SerializationMemberInfo
PopCurrentMemberInfo ( ) : void
PushCurrentMemberInfo ( SerializationMemberInfo memberInfo ) : void
SerializationContext ( SerializerOptions options, SerializationParameters parameters ) : System
SerializationEnd ( object obj ) : void

Call when an object has been serialized.

The object is popped off the serialization stack.

SerializationStart ( object obj ) : void

Prepares an object for serialization/

The object is pushed onto the serialization stack. This prevents the object from being serialized in cycles.

ShouldSerialize ( object obj, SerializationMemberInfo memberInfo ) : bool

Checks if see if an object should be serialized.

An object shouldn't be serialized if it has already been serialized. This method automatically checks if the object has been serialized by examining the serialization stack. This stack is maintained by the SerializationStart and SerializationEnd methods.

You should call SerializationStart and SerializationEnd when you start and finish serializing an object.

Method Details

DeserializationEnd() public method

public DeserializationEnd ( object obj ) : void
obj object
return void

DeserializationStart() public method

public DeserializationStart ( object obj ) : void
obj object
return void

GetCurrentMemberInfo() public method

public GetCurrentMemberInfo ( ) : SerializationMemberInfo
return SerializationMemberInfo

PopCurrentMemberInfo() public method

public PopCurrentMemberInfo ( ) : void
return void

PushCurrentMemberInfo() public method

public PushCurrentMemberInfo ( SerializationMemberInfo memberInfo ) : void
memberInfo SerializationMemberInfo
return void

SerializationContext() public method

public SerializationContext ( SerializerOptions options, SerializationParameters parameters ) : System
options SerializerOptions
parameters SerializationParameters
return System

SerializationEnd() public method

Call when an object has been serialized.
The object is popped off the serialization stack.
public SerializationEnd ( object obj ) : void
obj object
return void

SerializationStart() public method

Prepares an object for serialization/
The object is pushed onto the serialization stack. This prevents the object from being serialized in cycles.
public SerializationStart ( object obj ) : void
obj object
return void

ShouldSerialize() public method

Checks if see if an object should be serialized.

An object shouldn't be serialized if it has already been serialized. This method automatically checks if the object has been serialized by examining the serialization stack. This stack is maintained by the SerializationStart and SerializationEnd methods.

You should call SerializationStart and SerializationEnd when you start and finish serializing an object.

public ShouldSerialize ( object obj, SerializationMemberInfo memberInfo ) : bool
obj object
memberInfo SerializationMemberInfo
return bool