vb System.Type.IsPublic类(方法)实例源码

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

作者:VB.NET开发    项目:Syste   
Public Class TestClass
End Class

Public Class Example
   Public Shared Sub Main()
      Dim testClassInstance As New TestClass()
      
      ' Get the type of testClassInstance.
      Dim testType As Type = testClassInstance.GetType()
      ' Get the IsPublic property of testClassInstance.
      Dim isPublic As Boolean = testType.IsPublic
      Console.WriteLine("Is {0} public? {1}", testType.FullName, isPublic)
   End Sub 
End Class


问题


面经


文章

微信
公众号

扫码关注公众号