Converts the specified value to an array of Byte.
Namespace:
Sfs2X.WebSocketSharp
Assembly:
SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax public static byte[] ToByteArray<T>(
this T value,
ByteOrder order
)
where T : struct, new()
Parameters
- value
- Type: T
A T to convert.
- order
- Type: Sfs2X.WebSocketSharpByteOrder
One of the ByteOrder enum values, specifies the byte order of the return.
Type Parameters
- T
-
The type of value. The T must be a value type.
Return Value
Type:
Byte
An array of
Byte converted from
value.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also