Mega Code Archive

 
Categories / VB.Net / Data Types
 

Create BigInteger from

Imports System Imports System.Text Imports Microsoft.VisualBasic.Strings Imports System.Numerics Class MainClass     Public Shared Sub Main()         Dim byteArray() As Byte = { 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0}         Dim newBigInt As New BigInteger(byteArray)         Console.WriteLine("The value of newBigInt is {0} (or 0x{0:x}).", newBigInt)         End Sub End Class