Type.UnderlyingSystemType : Type « System « C# / C Sharp by API






Type.UnderlyingSystemType

   
using System;
using System.Reflection;

class InstanceType
{
  public static void 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);
  }
}

   
    
    
  








Related examples in the same category

1.Type.BaseType
2.Type.ContainsGenericParameters
3.Type.FullName
4.Type.GetConstructor
5.Type.GetCustomAttributes
6.Type.GetEvents()
7.Type.GetFields()
8.Type.GetGenericArguments()
9.Type.GetGenericTypeDefinition()
10.Type.GetInterfaces()
11.Type.GetMethod(String methodName);
12.Type.GetMethods()
13.Type.GetProperties()
14.Type.GetType(String typeName)
15.Type.GetType(String typeName, true)
16.Type.GetType(String typeName, true, true);
17.Type.IsAbstract
18.Type.IsClass
19.Type.IsCOMObject
20.Type.IsEnum
21.Type.IsGenericTypeDefinition
22.Type.IsSealed
23.Type.MakeGenericType
24.Type.Name
25.Type.ReflectionOnlyGetType