Click or drag to resize

IWritableRead Method

Reads the object from the specified reader.

Namespace:  Ookii.Jumbo.IO
Assembly:  Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 2.0.0
Syntax
void Read(
	BinaryReader reader
)

Parameters

reader
Type: System.IOBinaryReader
The BinaryReader to deserialize the object from.
Remarks

This object instance may have been created using GetUninitializedObject(Type) so the Read(BinaryReader) method may not make any assumptions about the internal state of the object, and must ensure the object is in a consistent state afterwards.

When record reuse is enabled, the Read(BinaryReader) method will be called multiple times on the same instance. The Read(BinaryReader) method must replace the entire internal state of the object with that of the new record. If any of the object's internal state is stored in reference types, it's recommended to reuse object instances as much as possible.

See Also