Implementations of ICompactSerializable can add their state directly to the output stream,
enabling them to bypass costly serialization.
Namespace: Alachisoft.NCache.Runtime.SerializationAssembly: Alachisoft.NCache.Runtime (in Alachisoft.NCache.Runtime.dll) Version: 4.1.0.0 (4.1.0.0)
Syntax
C# |
---|
public interface ICustomSerializable |
Visual Basic |
---|
Public Interface ICustomSerializable |
Visual C++ |
---|
public interface class ICustomSerializable |
Remarks
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).