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.128 -- Release Build+2960d3f3619fdc53cad514a51817286dcfb19027
public interface ISupportStreamSerialization<T>

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.

Methods

ReadFrom Deserializes an instance of type T from a Stream.
WriteTo Serializes an instance of type T to a Stream.

See Also