Get variable type : GetType « Reflection « VB.Net Tutorial






Imports System                

Module MyModule

  Sub Main()
    Dim i As Integer = 100

    Dim j As Int32 = i

    Console.WriteLine("Integer: {0}", GetType(Integer).FullName)
    Console.WriteLine("Int32:   {0}", GetType(Int32).FullName)

  End Sub
End Module
Integer: System.Int32
Int32:   System.Int32








19.1.GetType
19.1.1.Get variable type
19.1.2.GetType Method
19.1.3.A nested class and a struct in MyClass, and then obtains objects of the nested types