C-DEngine 5.105

Ext..::..To<(Of <(<'T>)>)> Method

Converts the specified array of Byte to the specified type data.

Namespace:  WebSocketSharp
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public static T To<T>(
	byte[] source,
	ByteOrder sourceOrder
)
Public Shared Function To(Of T) ( _
	source As Byte(), _
	sourceOrder As ByteOrder _
) As T
public:
generic<typename T>
static T To(
	array<unsigned char^>^ source, 
	ByteOrder^ sourceOrder
)

Type Parameters

T
The type of the return. The T must be a value type.

Parameters

source
Type: array<Byte>[]()[][]
An array of Byte to convert.
sourceOrder
Type: WebSocketSharp..::..ByteOrder
One of the ByteOrder enum values, specifies the byte order of source.

Return Value

A T converted from source, or a default value of T if source is an empty array of Byte or if the type of T isn't Boolean, Char, Double, Single, Int32, Int64, Int16, UInt32, UInt64, or UInt16.

Exceptions


ExceptionCondition
ArgumentNullExceptionsource is nullNothingnullptra null reference (Nothing in Visual Basic).