This documentation is archived and is not being maintained.

BitConverter.GetBytes Method (Int16)

.NET Framework 1.1

Returns the specified 16-bit signed integer value as an array of bytes.

[Visual Basic]
Overloads Public Shared Function GetBytes( _
   ByVal value As Short _
) As Byte()
public static byte[] GetBytes(
 short value
public: static unsigned char GetBytes(
 short value
)  __gc[];
public static function GetBytes(
   value : Int16
) : Byte[];


The number to convert.

Return Value

An array of bytes with length 2.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

BitConverter Class | BitConverter Members | System Namespace | BitConverter.GetBytes Overload List