IStateSerializer<T>.Read Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Read(BinaryReader) |
Deserializes from the given BinaryReader to |
Read(T, BinaryReader) |
Deserializes from the given BinaryReader to |
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
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
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.