vb System.Boolean.ToString类(方法)实例源码

下面列出了vb System.Boolean.ToString 类(方法)源码代码实例,从而了解它的用法。

作者:VB.NET开发    项目:Syste   
Dim raining As Boolean = False
Dim busLate As Boolean = True

Console.WriteLine("raining.ToString() returns {0}", raining)
Console.WriteLine("busLate.ToString() returns {0}", busLate)

作者:VB程序    项目:Syste   
' 导入命名空间
Imports System
Imports System.Data
Imports System.Collections

public class MainClass
   Shared Sub Main()
        Dim A As Boolean
        Dim I As Integer
        A = True
        I = CInt(A)
        Console.WriteLine("True Value of Boolean in Integer is: " + I.ToString())

        A = False
        I = CInt(A)
        Console.WriteLine("False Value of Boolean in Integer is: " + I.ToString())

   End Sub
End Class


问题


面经


文章

微信
公众号

扫码关注公众号