Implementations of ICompactSerializable can add their state directly to the output stream, enabling them to bypass costly serialization.

Namespace: Alachisoft.NCache.Runtime.Serialization
Assembly: Alachisoft.NCache.Runtime (in Alachisoft.NCache.Runtime.dll) Version: 4.3.0.0 (4.3.0.0)

Syntax

C#
public interface ICustomSerializable
Visual Basic
Public Interface ICustomSerializable
Visual C++
public interface class ICustomSerializable

Remarks

This Feature is Not Available in Express Objects that implement ICompactSerializable must have a default constructor (can be private).

As per current implementation when a ICompactSerializable is deserialized the default constructor is not invoked, therefore the object must "construct" itself in Deserialize(CompactReader).

See Also