This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
Formatter Methods
The methods of the Formatter class are listed below. For a complete list of Formatter class members, see the Formatter Members topic.
Public:
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:
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. |
See Also
Formatter Class | System.Runtime.Serialization Namespace