Mega Code Archive
Convert ToUInt64 (UInt16) converts specified 16-bit unsigned integer to 64-bit unsigned integer
Class Sample
Public Shared Sub Main()
Dim numbers() As UShort = { UInt16.MinValue, 121, 340, UInt16.MaxValue }
Dim result As ULong
For Each number As UShort In numbers
result = Convert.ToUInt64(number)
Console.WriteLine(result)
Next
End Sub
End Class