VMware Tanzu GemFire .NET Client API Reference

VMware Tanzu GemFire .NET Client: IPdxSerializable Interface Reference
VMware Tanzu GemFire .NET Client
IPdxSerializable Interface Reference

When a domain class implements PdxSerializable it marks itself as a PDX. The implementation of toData provides the serialization code and fromData provides the deserialization code. These methods also define each field name and field type of the PDX. Domain classes should serialize and de-serialize all its member fields in same order in toData and fromData method. A domain class which implements this interface should register delgate ITypeRegistry.RegisterPdxType to create new instance of type for de-serialization. More...

Inheritance diagram for IPdxSerializable:
ISerializable

Public Member Functions

void ToData (IPdxWriter writer)
 Serializes this object in geode PDX format. More...
 
void FromData (IPdxReader reader)
 Deserialize this object. More...
 

Detailed Description

When a domain class implements PdxSerializable it marks itself as a PDX. The implementation of toData provides the serialization code and fromData provides the deserialization code. These methods also define each field name and field type of the PDX. Domain classes should serialize and de-serialize all its member fields in same order in toData and fromData method. A domain class which implements this interface should register delgate ITypeRegistry.RegisterPdxType to create new instance of type for de-serialization.

Member Function Documentation

◆ FromData()

void IPdxSerializable.FromData ( IPdxReader  reader)

Deserialize this object.

Parameters
readerthe IPdxReader stream to use for reading the object data

◆ ToData()

void IPdxSerializable.ToData ( IPdxWriter  writer)

Serializes this object in geode PDX format.

Parameters
writerthe IPdxWriter object to use for serializing the object

The documentation for this interface was generated from the following file:
  • gemfire.client/Interfaces/IPdxSerializable.cs