Option Strict On
Public Class WrappedType
Public Shared Sub Main()
Dim intVar As Integer = 100
Dim intType As Type = intVar.GetType()
Console.WriteLine(TypeName(intVar) & " = " & intType.FullName)
Dim stringVar As String = "This is a string."
Dim stringType As Type = stringVar.GetType()
Console.WriteLine(TypeName(stringVar) & " = " & stringType. FullName)
Dim boolVar As Boolean = True
Dim boolType As Type = boolVar.GetType()
Console.WriteLine(TypeName(boolVar) & " = " & boolType. FullName)
Dim singleVar As Single = 3.1417
Dim singleType As Type = singleVar.GetType()
Console.WriteLine(TypeName(singleVar) & " = " & singleType. FullName)
End Sub
End Class
Integer = System.Int32
String = System.String
Boolean = System.Boolean
Single = System.Single