 | ValueWriterReadNullableStructT Method |
Reads a nullable structure value from the specified reader using the type's
IValueWriterT.
Namespace: Ookii.Jumbo.IOAssembly: Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 0.3.0+dc1307f20e065bb638e0b73a34cd216f57e486f1
Syntaxpublic static T? ReadNullableStruct<T>(
BinaryReader reader
)
where T : struct, new()
Public Shared Function ReadNullableStruct(Of T As {Structure, New}) (
reader As BinaryReader
) As T?
public:
generic<typename T>
where T : value class, gcnew()
static Nullable<T> ReadNullableStruct(
BinaryReader^ reader
)
static member ReadNullableStruct :
reader : BinaryReader -> Nullable<'T> when 'T : struct, new()
Parameters
- reader BinaryReader
- The reader to read the value from.
Type Parameters
- T
-
The type of the object to read.
Return Value
NullableTAn object containing the value.
Remarks
A Boolean is read from reader to see if the value is
. If it is , nothing else will be
read.
See Also