Collapse All Expand All

C#

Oracle® Coherence .NET API Reference
BinaryPofSerializer..::.Serialize Method
BinaryPofSerializer Class See Also Send Feedback

Oracle® Coherence .NET API Reference Release 3.6
E15727-01
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: 3.6.0.0 (3.6.0.0)

# Syntax

C#
    public 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. 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.
2. 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

Exception | Condition
--- | ---
System.IO..::.IOException | If an I/O error occurs.

# See Also

BinaryPofSerializer Class
Tangosol.IO.Pof Namespace