ISupportStreamSerializationUseCustomListSerialization Property

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.

Definition

Namespace: Gemstone.IO.Parsing
Assembly: Gemstone.IO (in Gemstone.IO.dll) Version: 1.0.156 -- Release Build+6a9f88f477f6aa18d5026c0c0fcc061b1aaed2d2
bool UseCustomListSerialization { get; }

Property Value

Boolean

Remarks

More commonly, if a type is assignable from an IList, it would be its element type that would implement ISupportStreamSerialization and the list serialization would be handled automatically by StreamSerializationT operations. However, if a type is assignable from an IList and implements ISupportStreamSerialization directly, then setting this property to true allows the list type to override default behavior and handle its own list serialization using the ReadFrom(Stream) and WriteTo(Stream, Object) methods.

See Also