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

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

作者:VB.NET开发    项目:Syste   
' Declare an enum type.
Enum NumEnum
    One
    Two
End Enum
    
Public Class Example

    Public Shared Sub Main()
        Dim flag As Boolean = False
        Dim testEnum As NumEnum = NumEnum.One
        ' Get the type of myTestEnum.
        Dim t As Type = testEnum.GetType()
        ' Get the IsValueType property of the myTestEnum variable.
         flag = t.IsValueType()
         Console.WriteLine("{0} is a value type: {1}", t.FullName, flag)
     End Sub 
 End Class


问题


面经


文章

微信
公众号

扫码关注公众号