TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

interface ISerializable in Tinman.Core.IO.Serialization

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

Remarks

Every solid (i.e. non-abstract) class that implements the ISerializable interface must provide a public default constructor.

Attributes

SerialType

Returns the serial type of this object.

property SerialType { get }
type ISerialTypeInfo
value [not-null] The serial type.

SerialVersion

Returns the serial data version.

property SerialVersion { get }
type int32
value [>=1] The serial data version tag.

Remarks:

An ISerializable implementation is required to support all versions up to the one returned by SerialVersion.

See also:

Serialize
Deserialize

Methods

Deserialize

Initializes 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 [not-null] 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:

Serialize
SerialVersion

Serialize

Serializes 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
SerialVersion