Inspects the type of data received, and calls the appropriate Write method to perform the write to the stream already attached to the formatter. When overridden in a derived class, writes a 64-bit signed integer to the stream. When overridden in a derived class, writes a 32-bit signed integer to the stream. When overridden in a derived class, writes a 16-bit signed integer to the stream already attached to the formatter. When overridden in a derived class, writes a double-precision floating-point number to the stream already attached to the formatter. When overridden in a derived class, writes a Decimal value to the stream already attached to the formatter. When overridden in a derived class, writes a DateTime value to the stream already attached to the formatter. When overridden in a derived class, writes a Unicode character to the stream already attached to the formatter. When overridden in a derived class, writes an 8-bit unsigned integer to the stream already attached to the formatter. When overridden in a derived class, writes a Boolean value to the stream already attached to the formatter. When overridden in a derived class, writes an array to the stream already attached to the formatter. Returns a string that represents the current object. When overridden in a derived class, serializes the graph of objects with the specified root to the stream already attached to the formatter. When overridden in a derived class, gets or sets the ISurrogateSelector used with the current formatter. When overridden in a derived class, gets or sets the StreamingContext used for the current serialization. When overridden in a derived class, gets or sets the SerializationBinder used with the current formatter. Initializes a new instance of the Formatter class.Ĭontains the ObjectIDGenerator used with the current formatter.Ĭontains a Queue of the objects left to serialize. When you inherit from Formatter, you must override the following members:
The Formatter also manages queuing objects for serialization and generating IDs on a per-object basis. Formatter is the abstract base class for all runtime serialization formatters, and provides some helper methods for implementing the IFormatter interface.