Click or drag to resize
BitConverterGetBytes Method (UInt16)
Returns the specified 16-bit unsigned integer value as an array of bytes.

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

Parameters

value
Type: SystemUInt16
The number to convert.

Return Value

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