System.Runtime.Serialization.Formatter.WriteMember Method

Inspects the type of data received, and calls the appropriate Write method to perform the write to the stream already attached to the formatter.

Syntax

protected virtual void WriteMember (string memberName, object data)

Parameters

memberName
The name of the member to serialize.
data
The object to write to the stream attached to the formatter.

Remarks

To use this method properly, all the Write methods (Formatter.WriteArray(object, string, Type) method, Formatter.WriteBoolean(bool, string) method, Formatter.WriteByte(byte, string) method, and so on) should have the appropriate functionality.

Requirements

Namespace: System.Runtime.Serialization
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0