A class that supports serialization must implement this interface.
interface
|
ISerializable
|
base of
|
IColorRamp
|
||
ICurve
|
|||||
IDatumTransform
|
|||||
IDocumentNode
|
|||||
IGeoObject
|
|||||
IGeoRegistry
|
|||||
IHeightmapFormat
|
|||||
INoiseFunctionBase
|
|||||
IRasterTransform
|
|||||
IShape
|
|||||
JsonValue
|
|||||
SerializableBase
|
|||||
SerializableDisposableBase
|
Every solid (i.e. non-abstract) class that implements the ISerializable interface must provide a public default constructor.
Returns the serial type of this object.
property
|
SerialType
{
get
}
|
||
type
|
ISerialTypeInfo
|
||
value
|
|
The serial type. |
Returns the serial data version.
property
|
SerialVersion
{
get
}
|
||
type
|
int32
|
||
value
|
|
The serial data version tag. |
Remarks:
An ISerializable implementation is required to support all versions up to the one returned by SerialVersion.
See also:
SerializeInitializes the state of this object from the given data stream.
method
|
Deserialize
(int32 serialVersion,
ISerializer data)
|
||
type
|
ISerializable
|
||
params
|
serialVersion
|
[>=1]
|
The serial data version. |
data
|
[not-null]
|
The serial data stream. | |
returns
|
|
The
deserialized
object.
This
will
typically
be
this ,
but
in
some
circumstances,
another
instance
may
be
returned
(e.g.
singletons).
|
Remarks:
The Deserialize method will be called immediately after the object has been instantiated via its default constructor.
The provided serialVersion number is guaranteed to be equal to or less than the SerialVersion returned by this object (i.e. ISerializable object must provide backwards compatibility).
See also:
SerializeSerializes the current state of this object to the given data stream.
method
|
Serialize
(ISerializer data)
|
||
params
|
data
|
[not-null]
|
The serial data stream. |
See also:
Deserialize