com.onlineobject.objectnet Namespace

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

Reads data of a specified type from the data buffer using a registered reader.

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

Syntax


public T Read<T>(

	Type dataType

)

Type Parameters

T
The type of data to read.

Parameters

dataType
Type: Type
The type of data to be read, used to find the appropriate reader.

Return Value

The data read from the buffer.

Exceptions


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