![](../icons/Hazelcast-IMDG-Logo-Orange_Dark_200px.jpg) | IPortable Interface |
Portable provides an alternative serialization method.
Namespace:
Hazelcast.IO.Serialization
Assembly:
Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.9.4
Syntaxpublic interface IPortable
Public Interface IPortable
public interface class IPortable
type IPortable = interface end
The IPortable type exposes the following members.
Methods
| Name | Description |
---|
![Public method Public method](../icons/pubmethod.gif) | GetClassId | Returns class identifier for this portable class. |
![Public method Public method](../icons/pubmethod.gif) | GetFactoryId | Returns PortableFactory id for this portable class |
![Public method Public method](../icons/pubmethod.gif) | ReadPortable | Read portable fields using PortableReader |
![Public method Public method](../icons/pubmethod.gif) | WritePortable | Serialize this portable object using PortableWriter |
Top
Remarks
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