public static void Main()
var test = new Derived();
bool isIt = t.IsSubclassOf(typeof(MyGeneric<>));
isIt = test.GetType().IsSubclassOf(typeof(MyGeneric<int>));
isIt = test.GetType().GetGenericTypeDefinition().IsSubclassOf(typeof(MyGeneric<>));
public class Derived : MyGeneric<int>
public class MyGeneric<T>