 | ValueWriterWriteNullableT(T, BinaryWriter) Method |
Namespace: Ookii.Jumbo.IOAssembly: Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 0.3.0+dc1307f20e065bb638e0b73a34cd216f57e486f1
Syntaxpublic static void WriteNullable<T>(
T value,
BinaryWriter writer
)
where T : class
Public Shared Sub WriteNullable(Of T As Class) (
value As T,
writer As BinaryWriter
)
public:
generic<typename T>
where T : ref class
static void WriteNullable(
T value,
BinaryWriter^ writer
)
static member WriteNullable :
value : 'T *
writer : BinaryWriter -> unit when 'T : not struct
Parameters
- value T
- The nullable value to write.
- writer BinaryWriter
- The writer to write the value to.
Type Parameters
- T
-
The type of the object to write.
Remarks
A Boolean will be written before the object to indicate whether the value
is . If it is , nothing else will be
written.
If the type of value implements IWritable, it is used
to write the value. If it does not, the IValueWriterT is used to write
the value.
See Also