PofAnnotationSerializer Class |
Namespace: Tangosol.IO.Pof
public class PofAnnotationSerializer : IPofSerializer
The PofAnnotationSerializer type exposes the following members.
Name | Description | |
---|---|---|
![]() | PofAnnotationSerializer(Int32, Type) |
Constructs a PofAnnotationSerializer.
|
![]() | PofAnnotationSerializer(Int32, Type, Boolean) |
Constructs a PofAnnotationSerializer.
|
Name | Description | |
---|---|---|
![]() | Deserialize |
Deserialize a user type instance from a POF stream by reading its
state using the specified IPofReader object.
|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | Serialize |
Serialize a user type instance to a POF stream by writing its
state using the specified IPofWriter object.
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
All fields annotated with PortableProperty are explicitly deemed POF serializable with the option of specifying overrides to provide explicit behaviour such as:
The Index (POF index) can be omitted iff the auto-indexing feature is enabled. This is enabled by instantiating this class with the autoIndex constructor argument. This feature determines the index based on any explicit indexes specified and the name of the portable properties. Currently objects with multiple versions is not supported. The following illustrates the auto index algorithm:
Name | Explicit Index | Determined Index |
c | 1 | 1 |
a | 0 | |
b | 2 |