NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Formatter Members

Public:

Properties

Binder Sets or returns the SerializationBinder used with this formatter. The SerializationBinder performs lookups for the type from the type names passed during serialization. If no SerializationBinder is set, a default one is used.
Context Sets or returns the StreamingContext used for this serialization. The StreamingContext is an indication of the source of the bits being deserialized or the destination of the bits being serialized. It has no impact on default serialization, but is passed as an argument to ISerializable and ISerializationSurrogate.
SurrogateSelector Sets or returns the ISurrogateSelector used with this formatter. The SurrogateSelector is used to look up implementations of ISerializationSurrogate which may control the serialization of a particular type.

Methods

Deserialize When overidden in a derived class, deserializes the stream attached to the formatter when it was created, creating a graph of objects that is the same as the graph originally serialized into that stream.
Equals (inherited from Object) Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality).
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) Gets the Type of the Object.
Serialize When overidden in a derived class, serialize the graph of objects, whose root is graph, to the stream already attached to the formatter.
ToString (inherited from Object) Returns a String that represents the current Object.

Protected:

Constructor

Formatter Constructor Initializes a new instance of the Formatter class.

Methods

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere.
GetNext Returns the next object, from the formatter's internal work queue, to be serialized.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.
Schedule Schedules an object for later serialization if the object hasn't already been scheduled. If the object is already in the work queue, it will not be added a second time.
WriteArray When overidden in a derived class, writes an array to the stream already attached to the formatter.
WriteBoolean When overidden in a derived class, writes a Boolean value to the stream already attached to the formatter.
WriteByte When overidden in a derived class, writes an 8-bit unsigend integer to the stream already attached to the formatter.
WriteChar When overidden in a derived class, writes a unicode character to the stream already attached to the formatter.
WriteCurrency When overidden in a derived class, writes a currency value to the stream already attached to the formatter.
WriteDateTime When overidden in a derived class, writes a DateTime value to the stream already attached to the formatter.
WriteDecimal When overidden in a derived class, writes a Decimal value to the stream already attached to the formatter.
WriteDouble When overidden in a derived class, writes a double-precision floating point number to the stream already attached to the formatter.
WriteInt16 When overidden in a derived class, writes a 16-bit signed integer to the stream already attached to the formatter.
WriteInt32 When overidden in a derived class, writes a 32-bit signed integer to the stream.
WriteInt64 When overidden in a derived class, writes a 64-bit signed integer to the stream.
WriteMember Inspects the type of data received, and calls the appropriate WriteXXX method to perform the actual write to the stream already attached to the formatter.
WriteObjectRef When overidden in a derived class, writes an object reference to the stream already attached to the formatter.
WriteSByte When overidden in a derived class, writes an 8-bit signed integer to the stream already attached to the formatter.
WriteSingle When overidden in a derived class, writes a single-precision floating point number to the stream already attached to the formatter.
WriteTimeSpan When overidden in a derived class, writes a TimeSpan value to the stream already attached to the formatter.
WriteUInt16 When overidden in a derived class, writes a 16-bit unsigned integer to the stream.
WriteUInt32 When overidden in a derived class, writes a 32-bit unsigned integer to the stream.
WriteUInt64 When overidden in a derived class, writes a 64-bit unsigned integer to the stream.
WriteValueType When overidden in a derived class, writes a value type to the stream already attached to the formatter.

Fields

m_idGenerator The ObjectIDGenerator used with this formatter. The ObjectIDGenerator is used to maintain a list of the objects which have been seen and the IDs which they were given.
m_objectQueue A queue of the objects which remain to be serialized. Objects are pushed on the queue when schedule is called.

See Also

Formatter Class | System.Runtime.Serialization Namespace