Mono Class Library: System.BitConverter Overview | Members

System.BitConverter.GetBytes Method

Returns the binary representation of the ushort value [Edit]

[System.CLSCompliant(false)]
public static byte[] GetBytes (ushort value)

Parameters

value
The value to convert in binary data [Edit]

Returns

The binary representation of the value as an Array of bytes [Edit]

Remarks

Returns 2 bytes (16-bits unsigned integer, see ushort) [Edit]

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0