Collapse All Expand All

C#

Oracle® Coherence .NET API Reference
PofStreamReader..::.PofContext Property
PofStreamReader Class See Also Send Feedback

Oracle® Coherence .NET API Reference Release 3.6
E15727-01
Gets or sets the IPofContext object used by this PofStreamReader to deserialize user types from a POF stream.

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

# Syntax

C#
    public virtual IPofContext PofContext { get; set; }

#### Field Value

The IPofContext object that contains user type meta-data.

#### Implements

IPofReader..::.PofContext

# Remarks

This is an advanced propertie that should be used with care. For example, if this method is being used to switch to another IPofContext mid-POF stream, it is important to eventually restore the original IPofContext. For example:

                 IPofContext ctxOrig = reader.PofContext;
                 try
                 {
                     // switch to another IPofContext
                     reader.PofContext = ...;

                     // read POF data using the reader
                 }
                 finally
                 {
                     // restore the original PofContext
                     reader.PofContext = ctxOrig;
                 }

# See Also

PofStreamReader Class
Tangosol.IO.Pof Namespace