Create BigInteger using the values in a byte array.
using System;
using System.Numerics;
public class Example
{
public static void Main()
{
byte[] bytes = { 5, 4, 3, 2, 1 };
BigInteger number = new BigInteger(bytes);
Console.WriteLine("The value of number is {0} (or 0x{0:x}).", number);
}
}
Related examples in the same category