Pivotal GemFire Native .NET Reference  10.0.5
Apache::Geode::Client::IPdxSerializer Interface Reference

The IPdxSerializer interface allows domain classes to be serialized and deserialized as PDXs without modification of the domain class. More...

Inherited by Apache::Geode::Client::ReflectionBasedAutoSerializer.

Public Member Functions

Object ^ FromData (String^ classname, IPdxReader^ reader)
 Deserialize this object. More...
 
bool ToData (Object^ o, IPdxWriter^ writer)
 Serializes this object in geode PDX format. More...
 

Detailed Description

The IPdxSerializer interface allows domain classes to be serialized and deserialized as PDXs without modification of the domain class.

A domain class should register delgate Serializable.RegisterPdxType to create new instance of type for de-serilization.

Member Function Documentation

◆ FromData()

Object ^ Apache::Geode::Client::IPdxSerializer::FromData ( String^  classname,
IPdxReader reader 
)

Deserialize this object.

Parameters
classnamethe classname whose object need to de-serialize
readerthe IPdxReader stream to use for reading the object data

Implemented in Apache::Geode::Client::ReflectionBasedAutoSerializer.

◆ ToData()

bool Apache::Geode::Client::IPdxSerializer::ToData ( Object^  o,
IPdxWriter writer 
)

Serializes this object in geode PDX format.

Parameters
othe object which need to serialize
writerthe IPdxWriter object to use for serializing the object

Implemented in Apache::Geode::Client::ReflectionBasedAutoSerializer.


Apache Geode C++ Cache .NET API Documentation