NBitConverterI
NBitConverter I is a.NET class used to convert between numeric types and an array of bytes. It is used for converting between an integer and its hexadecimal or binary representation.
The class is an interface, which means it must be implemented by another class in order to
The method ToBytes takes an integer and a range as parameters. It returns an array of bytes
The method Create is the inverse of ToBytes. It takes a byte array and returns the integer
The method CreateFromBytes is similar to Create. It takes a byte array and returns the integer that
The designers of the.NET Framework included NBitConverter I as a way to providing a common base class