Formatter Members

Provides base functionality for the common language runtime serialization formatters.

The Formatter type exposes the following members.

  NameDescription
Protected method Formatter Initializes a new instance of the Formatter class.
Top

  NameDescription
Public method Deserialize 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 method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Protected method GetNext Returns the next object to serialize, from the formatter's internal work queue.
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method Schedule Schedules an object for later serialization.
Public method Serialize When overridden in a derived class, serializes the graph of objects with the specified root to the stream already attached to the formatter.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Protected method WriteArray When overridden in a derived class, writes an array to the stream already attached to the formatter.
Protected method WriteBoolean When overridden in a derived class, writes a Boolean value to the stream already attached to the formatter.
Protected method WriteByte When overridden in a derived class, writes an 8-bit unsigned integer to the stream already attached to the formatter.
Protected method WriteChar When overridden in a derived class, writes a Unicode character to the stream already attached to the formatter.
Protected method WriteDateTime When overridden in a derived class, writes a DateTime value to the stream already attached to the formatter.
Protected method WriteDecimal When overridden in a derived class, writes a Decimal value to the stream already attached to the formatter.
Protected method WriteDouble When overridden in a derived class, writes a double-precision floating-point number to the stream already attached to the formatter.
Protected method WriteInt16 When overridden in a derived class, writes a 16-bit signed integer to the stream already attached to the formatter.
Protected method WriteInt32 When overridden in a derived class, writes a 32-bit signed integer to the stream.
Protected method WriteInt64 When overridden in a derived class, writes a 64-bit signed integer to the stream.
Protected method WriteMember 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 method WriteObjectRef When overridden in a derived class, writes an object reference to the stream already attached to the formatter.
Protected method WriteSByte When overridden in a derived class, writes an 8-bit signed integer to the stream already attached to the formatter.
Protected method WriteSingle When overridden in a derived class, writes a single-precision floating-point number to the stream already attached to the formatter.
Protected method WriteTimeSpan When overridden in a derived class, writes a TimeSpan value to the stream already attached to the formatter.
Protected method WriteUInt16 When overridden in a derived class, writes a 16-bit unsigned integer to the stream already attached to the formatter.
Protected method WriteUInt32 When overridden in a derived class, writes a 32-bit unsigned integer to the stream already attached to the formatter.
Protected method WriteUInt64 When overridden in a derived class, writes a 64-bit unsigned integer to the stream already attached to the formatter.
Protected method WriteValueType When overridden in a derived class, writes a value of the given type to the stream already attached to the formatter.
Top

  NameDescription
Protected field m_idGenerator Contains the ObjectIDGenerator used with the current formatter.
Protected field m_objectQueue Contains a Queue of the objects left to serialize.
Top

  NameDescription
Public property Binder When overridden in a derived class, gets or sets the SerializationBinder used with the current formatter.
Public property Context When overridden in a derived class, gets or sets the StreamingContext used for the current serialization.
Public property SurrogateSelector When overridden in a derived class, gets or sets the ISurrogateSelector used with the current formatter.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft