In VB.NET how do I access the runtime type object of a specified type from it’s type name?

Platform: WinForms|Category: General

Visual Basic has a GetType operator that can be used to obtain the System.Type object for the specified type name. This is the equivalent of the typeof keyword in C#.

’ Returns the System.RuntimeType object representing the integer type.
Dim inttype As Type = GetType(Integer)

’ Returns the System.RuntimeType object representing the Project1.Type1 class.
Dim mytype As Type = GetType(Project1.Type1)