Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

BitConverter.GetBytes Method

 

Converts the specified data to an array of bytes.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticGetBytes(Boolean)

Returns the specified Boolean value as a byte array.

System_CAPS_pubmethodSystem_CAPS_staticGetBytes(Char)

Returns the specified Unicode character value as an array of bytes.

System_CAPS_pubmethodSystem_CAPS_staticGetBytes(Double)

Returns the specified double-precision floating point value as an array of bytes.

System_CAPS_pubmethodSystem_CAPS_staticGetBytes(Int16)

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

System_CAPS_pubmethodSystem_CAPS_staticGetBytes(Int32)

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

System_CAPS_pubmethodSystem_CAPS_staticGetBytes(Int64)

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

System_CAPS_pubmethodSystem_CAPS_staticGetBytes(Single)

Returns the specified single-precision floating point value as an array of bytes.

System_CAPS_pubmethodSystem_CAPS_staticGetBytes(UInt16)

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

System_CAPS_pubmethodSystem_CAPS_staticGetBytes(UInt32)

Returns the specified 32-bit unsigned integer value as an array of bytes.

System_CAPS_pubmethodSystem_CAPS_staticGetBytes(UInt64)

Returns the specified 64-bit unsigned integer value as an array of bytes.

Return to top
Show:
© 2017 Microsoft