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 System.IO.BinaryReader to |
Read(T, BinaryReader) |
Deserializes from the given System.IO.BinaryReader to |
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.