C# Class Microsoft.ResourceManagement.Client.ClientSerializer

XmlObjectSerializer-based Serializer, wraps XMLSerializer
Inheritance: System.Runtime.Serialization.XmlObjectSerializer
Show file Open project: Predica/FimClient Class Usage Examples

Public Methods

Method Description
ClientSerializer ( Type type ) : System

Constructor to set type

IsStartObject ( System reader ) : bool

IsStartObject returns true if the object found in the read can be deserialized. We use CanDeserialize to get the answer.

ReadObject ( System reader, bool verifyObjectName ) : object

ReadObject is used to read and object from the reader. Deserialize will do the work.

WriteEndObject ( System writer ) : void

WriteEndObject is used to close up the object. Since the XMLSerialzer does all the work, nothing is needed here.

WriteObjectContent ( System writer, object graph ) : void

WriteObjectContent is called to serialze the object to writer. Serialze will do the work here.

WriteStartObject ( System writer, object graph ) : void

WriteStartObject is used to start off the object. Since the XMLSerialzer does all the work, nothing is needed here.

Method Details

ClientSerializer() public method

Constructor to set type
public ClientSerializer ( Type type ) : System
type System.Type
return System

IsStartObject() public method

IsStartObject returns true if the object found in the read can be deserialized. We use CanDeserialize to get the answer.
public IsStartObject ( System reader ) : bool
reader System
return bool

ReadObject() public method

ReadObject is used to read and object from the reader. Deserialize will do the work.
public ReadObject ( System reader, bool verifyObjectName ) : object
reader System
verifyObjectName bool
return object

WriteEndObject() public method

WriteEndObject is used to close up the object. Since the XMLSerialzer does all the work, nothing is needed here.
public WriteEndObject ( System writer ) : void
writer System
return void

WriteObjectContent() public method

WriteObjectContent is called to serialze the object to writer. Serialze will do the work here.
public WriteObjectContent ( System writer, object graph ) : void
writer System
graph object
return void

WriteStartObject() public method

WriteStartObject is used to start off the object. Since the XMLSerialzer does all the work, nothing is needed here.
public WriteStartObject ( System writer, object graph ) : void
writer System
graph object
return void