Click or drag to resize

ValueWriterWriteNullableT(T, BinaryWriter) Method

Writes the specified nullable value using its IWritable implementation or its IValueWriterT.

Namespace: Ookii.Jumbo.IO
Assembly: Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 0.3.0+dc1307f20e065bb638e0b73a34cd216f57e486f1
Syntax
public static void WriteNullable<T>(
	T value,
	BinaryWriter writer
)
where T : class

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