Serialize a user type instance to a POF stream by writing its state using the specified IPofWriter object.

Namespace: Tangosol.IO.Pof
Assembly: Coherence (in Coherence.dll) Version: 12.1.2.0 (12.1.2.0)

Syntax

C#
public virtual void Serialize(
	IPofWriter writer,
	Object o
)

Parameters

writer
Type: Tangosol.IO.Pof..::..IPofWriter
The IPofWriter with which to write the object's state.
o
Type: System..::..Object
The object to serialize.

Implements

IPofSerializer..::..Serialize(IPofWriter, Object)

Remarks

An implementation of IPofSerializer is required to follow the following steps in sequence for writing out an object of a user type:
  1. If the object is evolvable, the implementation must set the version by calling VersionId.
  2. The implementation may write any combination of the properties of the user type by using the "write" methods of the IPofWriter, but it must do so in the order of the property indexes.
  3. After all desired properties of the user type have been written, the implementation must terminate the writing of the user type by calling WriteRemainder(Binary).

Exceptions

ExceptionCondition
System.IO..::..IOException If an I/O error occurs.

See Also