Mono Class Library: System.BitConverter Overview | Members

System.BitConverter.GetBytes Method

Returns the binary representation of the char value [Edit]

public static byte[] GetBytes (char 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-bit Unicode character, see char) [Edit]

Requirements

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