Methods

Formatter Methods

The methods of the Formatter class are listed here. For a complete list of Formatter class members, see the Formatter Members topic.

Public Methods

public methodDeserialize When overridden in a derived class, deserializes the stream attached to the formatter when it was created, creating a graph of objects identical to the graph originally serialized into that stream.
public methodEquals (inherited from Object) Overloaded. Determines whether two Object instances are equal.
public methodGetHashCode (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.
public methodGetType (inherited from Object) Gets the Type of the current instance.
public methodSerialize When overridden in a derived class, serializes the graph of objects with the specified root to the stream already attached to the formatter.
public methodToString (inherited from Object) Returns a String that represents the current Object.

Protected Methods

protected methodFinalize (inherited from Object) Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodGetNext Returns the next object to serialize, from the formatter's internal work queue.
protected methodMemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.
protected methodSchedule Schedules an object for later serialization.
protected methodWriteArray When overridden in a derived class, writes an array to the stream already attached to the formatter.
protected methodWriteBoolean When overridden in a derived class, writes a Boolean value to the stream already attached to the formatter.
protected methodWriteByte When overridden in a derived class, writes an 8-bit unsigned integer to the stream already attached to the formatter.
protected methodWriteChar When overridden in a derived class, writes a Unicode character to the stream already attached to the formatter.
protected methodWriteDateTime When overridden in a derived class, writes a DateTime value to the stream already attached to the formatter.
protected methodWriteDecimal When overridden in a derived class, writes a Decimal value to the stream already attached to the formatter.
protected methodWriteDouble When overridden in a derived class, writes a double-precision floating-point number to the stream already attached to the formatter.
protected methodWriteInt16 When overridden in a derived class, writes a 16-bit signed integer to the stream already attached to the formatter.
protected methodWriteInt32 When overridden in a derived class, writes a 32-bit signed integer to the stream.
protected methodWriteInt64 When overridden in a derived class, writes a 64-bit signed integer to the stream.
protected methodWriteMember Inspects the type of data received, and calls the appropriate Write method to perform the write to the stream already attached to the formatter.
protected methodWriteObjectRef When overridden in a derived class, writes an object reference to the stream already attached to the formatter.
protected methodWriteSByte When overridden in a derived class, writes an 8-bit signed integer to the stream already attached to the formatter.
protected methodWriteSingle When overridden in a derived class, writes a single-precision floating-point number to the stream already attached to the formatter.
protected methodWriteTimeSpan When overridden in a derived class, writes a TimeSpan value to the stream already attached to the formatter.
protected methodWriteUInt16 When overridden in a derived class, writes a 16-bit unsigned integer to the stream already attached to the formatter.
protected methodWriteUInt32 When overridden in a derived class, writes a 32-bit unsigned integer to the stream already attached to the formatter.
protected methodWriteUInt64 When overridden in a derived class, writes a 64-bit unsigned integer to the stream already attached to the formatter.
protected methodWriteValueType When overridden in a derived class, writes a value of the given type to the stream already attached to the formatter.

See Also

Formatter Class | System.Runtime.Serialization Namespace

Show:
© 2016 Microsoft