StreamSerializationT Class

Defines stream serialization operations for natives types or classes that expose ReadFrom and WriteTo methods. Instance and static options available. Arrays and lists of types are also supported, so long as base type is a native type or supports required serialization methods.

Definition

Namespace: Gemstone.IO.Parsing
Assembly: Gemstone.IO (in Gemstone.IO.dll) Version: 1.0.128 -- Release Build+2960d3f3619fdc53cad514a51817286dcfb19027
public static class StreamSerialization<T>
Inheritance
Object    StreamSerializationT

Type Parameters

T
Target type for stream serialization.

Remarks

Deserialization Method Implementation Options:
ReadFrom Instance signature: void ReadFrom(Stream)
ReadFrom Static object-based signature: static object ReadFrom(Stream)
ReadFrom Static strongly-typed signature: static T ReadFrom(Stream)
Note that deserialization of type also supports a constructor that accepts a standalone Stream parameter.

Serialization Method Implementation Options:
WriteTo Instance signature: void WriteTo(Stream)
WriteTo Static object-based signature: static void WriteTo(Stream, object)
WriteTo Static strongly-typed signature: static void WriteTo(Stream, T)

Note that proper static method signatures can be defined for a class by implementing the ISupportStreamSerialization or ISupportStreamSerializationT interface, implicitly or explicitly.

Methods

GetReadMethod Gets read deserialization method for type T.
GetWriteMethod Gets write serialization method for type T.

See Also