using the BaseType property. : Base Type « Reflection « C# / C Sharp






using the BaseType property.

 

using System;
class TestType 
{
    public static void Main() 
    {
        Type t = typeof(int);
        Console.WriteLine("{0} inherits from {1}.", t,t.BaseType);
    }
}

   
  








Related examples in the same category

1.Determines if the type is derived from the given base type.