public static bool IsStatementController(Type type) { if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(StatementController<>)) return true; return type.BaseType != null && IsStatementController(type.BaseType); }
public StatementSet FromAssembly(Assembly assembly) { foreach (var t in assembly.GetTypes() .Where(x => !x.IsAbstract && StaticAnalysis.IsStatementController(x))) { FromController(t); } return(this); }