BitConverter Methods |
The BitConverter type exposes the following members.
Name | Description | |
---|---|---|
GetBytes(Boolean) | Returns the specified Boolean value as an array of bytes. | |
GetBytes(Char) | Returns the specified Unicode character value as an array of bytes. | |
GetBytes(Double) | Returns the specified double-precision floating point value as an array of bytes. | |
GetBytes(Int16) | Returns the specified 16-bit signed integer value as an array of bytes. | |
GetBytes(Int32) | Returns the specified 32-bit signed integer value as an array of bytes. | |
GetBytes(Int64) | Returns the specified 64-bit signed integer value as an array of bytes. | |
GetBytes(Single) | Returns the specified single-precision floating point value as an array of bytes. | |
GetBytes(UInt16) | Returns the specified 16-bit unsigned integer value as an array of bytes. | |
GetBytes(UInt32) | Returns the specified 32-bit unsigned integer value as an array of bytes. | |
GetBytes(UInt64) | Returns the specified 64-bit unsigned integer value as an array of bytes. | |
ToBoolean | Returns a Boolean value converted from one byte at a specified position in a byte array. | |
ToDouble | Returns a double-precision floating point number converted from eight bytes at a specified position in a byte array. | |
ToInt16 | Returns a 16-bit signed integer converted from two bytes at a specified position in a byte array. | |
ToInt32 | Returns a 32-bit signed integer converted from four bytes at a specified position in a byte array. | |
ToInt64 | Returns a 64-bit signed integer converted from eight bytes at a specified position in a byte array. | |
ToSingle | Returns a single-precision floating point number converted from four bytes at a specified position in a byte array. | |
ToString(Byte) | Converts the numeric value of each element of a specified array of bytes to its equivalent hexadecimal string representation. | |
ToString(Byte, Int32) | Converts the numeric value of each element of a specified subarray of bytes to its equivalent hexadecimal string representation. | |
ToString(Byte, Int32, Int32) | Converts the numeric value of each element of a specified subarray of bytes to its equivalent hexadecimal string representation. | |
ToUInt16 | Returns a 16-bit unsigned integer converted from two bytes at a specified position in a byte array. | |
ToUInt32 | Returns a 32-bit unsigned integer converted from four bytes at a specified position in a byte array. | |
ToUInt64 | Returns a 64-bit unsigned integer converted from eight bytes at a specified position in a byte array. |