IStateSerializer<T>.Read Method

Definition

Overloads

Read(BinaryReader)

Deserializes from the given System.IO.BinaryReader to T.

Read(T, BinaryReader)

Deserializes from the given System.IO.BinaryReader to T.

Read(BinaryReader)

Deserializes from the given System.IO.BinaryReader to T.

public T Read (System.IO.BinaryReader binaryReader);
abstract member Read : System.IO.BinaryReader -> 'T

Parameters

binaryReader
System.IO.BinaryReader

The System.IO.BinaryReader to deserialize from.

Returns

T

The deserialized value.

Remarks

When accessing the System.IO.BinaryReader base stream, care must be taken when moving the position in the stream. Reading must begin at the current stream position and end at the current position plus the length of your data.

Applies to

Read(T, BinaryReader)

Deserializes from the given System.IO.BinaryReader to T.

public T Read (T baseValue, System.IO.BinaryReader binaryReader);
abstract member Read : 'T * System.IO.BinaryReader -> 'T

Parameters

baseValue
T

The base value for the deserialization.

binaryReader
System.IO.BinaryReader

The System.IO.BinaryReader to deserialize from.

Returns

T

The deserialized value.

Remarks

When accessing the System.IO.BinaryReader base stream, care must be taken when moving the position in the stream. Reading must begin at the current stream position and end at the current position plus the length of your data.

Applies to