using System;
public class Base { }
public class Derived : Base { }
class Program
{
static void Main() {
Console.WriteLine(typeof(Derived).IsSubclassOf(typeof(Base)));
Console.WriteLine(typeof(Base).IsSubclassOf(typeof(Base)));
}
}
/*
run:
True
False
*/