Mega Code Archive

 
Categories / VB.Net / Data Types
 

Create BigInteger structure using the values in a byte array

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