Convert.ToBoolean (UInt64) converts 64-bit unsigned integer to Boolean value.
Class Sample
Public Shared Sub Main()
Dim numbers() As ULong = { UInt64.MinValue, 1, 2010, UInt64.MaxValue }
Dim result As Boolean
For Each number As ULong In numbers
result = Convert.ToBoolean(number)
Console.WriteLine("{0,-26:N0} --> {1}", number, result)
Next
End Sub
End Class
Related examples in the same category