| IPortable Interface |
Portable provides an alternative serialization method.
Namespace:
Hazelcast.IO.Serialization
Assembly:
Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.11
Syntax public interface IPortable
Public Interface IPortable
public interface class IPortable
type IPortable = interface end
The IPortable type exposes the following members.
Methods
| Name | Description |
---|
| GetClassId | Returns class identifier for this portable class. |
| GetFactoryId | Returns PortableFactory id for this portable class |
| ReadPortable | Read portable fields using PortableReader |
| WritePortable | Serialize this portable object using PortableWriter |
TopRemarks
Portable provides an alternative serialization method. Instead of relying on reflection, each Portable is
created by a registere
IPortableFactory.
Portable serialization that have the following advantages:
- Support multiversion of the same object type.
(See
SetPortableVersion(Int32)
)
- Fetching individual fields without having to rely on reflection.
- Querying and indexing support without de-serialization and/or reflection.
See Also