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: (


public interface ICompactSerializable
Visual Basic
Public Interface ICompactSerializable
Visual C++
public interface class ICompactSerializable


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