C# Class Platform.Xml.Serialization.SerializationContext

Maintains state required to perform serialization.
Afficher le fichier Open project: platformdotnet/Platform Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public DeserializationEnd ( object obj ) : void
obj object
Résultat void

DeserializationStart() public méthode

public DeserializationStart ( object obj ) : void
obj object
Résultat void

GetCurrentMemberInfo() public méthode

public GetCurrentMemberInfo ( ) : SerializationMemberInfo
Résultat SerializationMemberInfo

PopCurrentMemberInfo() public méthode

public PopCurrentMemberInfo ( ) : void
Résultat void

PushCurrentMemberInfo() public méthode

public PushCurrentMemberInfo ( SerializationMemberInfo memberInfo ) : void
memberInfo SerializationMemberInfo
Résultat void

SerializationContext() public méthode

public SerializationContext ( SerializerOptions options, SerializationParameters parameters ) : System
options SerializerOptions
parameters SerializationParameters
Résultat System

SerializationEnd() public méthode

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

SerializationStart() public méthode

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
Résultat void

ShouldSerialize() public méthode

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