Click or drag to resize
BitConverterGetBytes Method (Char)
Returns the specified Unicode character value as an array of bytes.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static byte[] GetBytes(
	char value
)

Parameters

value
Type: SystemChar
A character to convert.

Return Value

Type: Byte
An array of bytes with length 2.
See Also