Share via


IStateSerializer<T>.Read Method

Definition

Overloads

Read(BinaryReader)

Deserializes from the given BinaryReader to T.

Read(T, BinaryReader)

Deserializes from the given BinaryReader to T.

Read(BinaryReader)

Deserializes from the given BinaryReader to T.

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

Parameters

binaryReader
BinaryReader

The BinaryReader to deserialize from.

Returns

T

The deserialized value.

Remarks

When accessing the 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 BinaryReader to T.

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

Parameters

baseValue
T

The base value for the deserialization.

binaryReader
BinaryReader

The BinaryReader to deserialize from.

Returns

T

The deserialized value.

Remarks

When accessing the 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