I have a generic class in my project with derived classes.
public class GenericClass : GenericInterface { } public class Test : GenericCla
You can try this extension
public static bool IsSubClassOfGenericClass(this Type type, Type genericClass,Type t) { return type.IsSubclassOf(genericClass.MakeGenericType(new[] { t })); }