| ValueWriterTReadValue Method |
Namespace:
Ookii.Jumbo.IO
Assembly:
Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 2.0.0
Syntax public static T ReadValue(
BinaryReader reader
)
Public Shared Function ReadValue (
reader As BinaryReader
) As T
public:
static T ReadValue(
BinaryReader^ reader
)
static member ReadValue :
reader : BinaryReader -> 'T
Parameters
- reader
- Type: System.IOBinaryReader
The reader to read the value from.
Return Value
Type:
TAn object containing the value.
Remarks
If the type implements IWritable, a new instance is created and Read(BinaryReader)
is used to read the value. If it does not, IValueWriterT is used to read the value.
This method will always create a new instance, even if the type implements IWritable, so
should not be used in scenarios where you wish to support record reuse.
See Also