Get object Type Name, UnderlyingSystemType, IsClass
using System;
using System.Reflection;
class InstanceType
{
publicstaticvoid Main()
{
String myVar = "P";
Type t = myVar.GetType();
Console.WriteLine("Name : {0}",t.Name);
Console.WriteLine("Underlying System Type : {0}",t.UnderlyingSystemType);
Console.WriteLine("Is Class : {0}",t.IsClass);
}
}