com.onlineobject.objectnet Namespace

DataStream..::..Write<(Of <(<'T>)>)> Method (T, Type)

Writes data of a specified type to the data buffer using a registered writer.

Namespace:  com.onlineobject.objectnet
Assembly:  ObjectNetAPI (in ObjectNetAPI.dll)

Syntax


public void Write<T>(

	T data,

	Type dataType

)

Type Parameters

T
The type of data to write.

Parameters

data
Type: T
The data to be written to the buffer.
dataType
Type: Type
The type of data to be written, used to find the appropriate writer.

Exceptions


ExceptionCondition
ExceptionThrown when the specified type is not supported or the writer is not found.