Formatter.WriteMember Method (String, Object)


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

Namespace:   System.Runtime.Serialization
Assembly:  mscorlib (in mscorlib.dll)

protected virtual void WriteMember(
	string memberName,
	object data


Type: System.String

The name of the member to serialize.

Type: System.Object

The object to write to the stream attached to the formatter.

To use this method properly, all the Write methods (WriteArray method, WriteBoolean method, WriteByte method, and so on) should have the appropriate functionality.

.NET Framework
Available since 1.1
Return to top