BitConverter Class
Collapse the table of content
Expand the table of content

BitConverter Class

Converts base data types to an array of bytes, and an array of bytes to base data types.

For a list of all members of this type, see BitConverter Members.


[Visual Basic]
NotInheritable Public Class BitConverter
public sealed class BitConverter
public __gc __sealed class BitConverter
public class BitConverter

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


This class facilitates manipulating value types in their fundamental form. A byte is defined as an 8-bit unsigned integer.


Namespace: System

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

Assembly: Mscorlib (in Mscorlib.dll)

See Also

BitConverter Members | System Namespace | Byte

© 2015 Microsoft