Convert.ToBoolean (UInt64) converts 64-bit unsigned integer to Boolean value. : Convert to Boolean « Development « VB.Net

Home
VB.Net
1.2D
2.Application
3.Class
4.Data Structure
5.Data Types
6.Database ADO.net
7.Date Time
8.Development
9.Event
10.File Directory
11.Generics
12.GUI
13.Internationalization I18N
14.Language Basics
15.LINQ
16.Network Remote
17.Reflection
18.Security
19.Thread
20.Windows Presentation Foundation
21.Windows System
22.XML
23.XML LINQ
VB.Net » Development » Convert to BooleanScreenshots 
Convert.ToBoolean (UInt64) converts 64-bit unsigned integer to Boolean value.
  
Class Sample
   Public Shared Sub Main()

        Dim numbers() As ULong = UInt64.MinValue, 12010, 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
1.Convert.ToBoolean converts 8-bit unsigned integer to Boolean value.
2.Convert.ToBoolean(Decimal) converts decimal number to Boolean value.
3.Convert.ToBoolean(Double) converts double number to Boolean value.
4.Convert.ToBoolean(Int16) converts 16-bit signed integer to Boolean value.
5.Convert.ToBoolean (Int32) converts 32-bit signed integer to Boolean value.
6.Convert.ToBoolean (Int64) converts 64-bit signed integer to Boolean value.
7.Convert.ToBoolean (Object) converts object to Boolean value.
8.Convert.ToBoolean (SByte) converts 8-bit signed integer to Boolean value.
9.Convert.ToBoolean (Single) converts single-precision number to Boolean value.
10.Convert.ToBoolean (String) converts string to Boolean equivalent.
11.Convert.ToBoolean (UInt16) converts 16-bit unsigned integer to Boolean value.
12.Convert.ToBoolean (UInt32) converts 32-bit unsigned integer to Boolean value.
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.