ISupportStreamSerializationT Interface

Specifies that an object supports serialization via static Stream operations using strongly-typed ReadFrom(Stream) and WriteTo(Stream, T) methods.

Definition

Namespace: Gemstone.IO.Parsing
Assembly: Gemstone.IO (in Gemstone.IO.dll) Version: 1.0.170 -- Release Build+270a561d12ed7ebe7f1cf5b3042f77290d2c34bd
public interface ISupportStreamSerialization<T> : ISupportStreamSerialization
Implements
ISupportStreamSerialization

Type Parameters

T
Type that implements stream serialization.

Remarks

This interface exists to allow classes to properly define the needed method signatures for using StreamSerializationT operations. However, as long as the ReadFrom(Stream) and WriteTo(Stream, T) methods exist on a class with the proper signature, actual implementation of this interface is optional.

Properties

UseCustomListSerialization Gets flag that determines if type implementing ISupportStreamSerialization is a list-type and supports its own list serialization handling, i.e., if automated list count and items serialization should be skipped by StreamSerializationT operations.
(Inherited from ISupportStreamSerialization)

Methods

ReadFrom Deserializes an instance of type T from a Stream.
WriteTo(Stream, Object) Serializes an object to a Stream.
(Inherited from ISupportStreamSerialization)
WriteTo(Stream, T) Serializes an instance of type T to a Stream.

See Also