예제 #1
0
 public static IEnumerable <Type> GetKnownTypesOf(this IAssemblyRegistry registry, Type baseType)
 {
     return(registry.GetConcreteTypesDerivingFrom(baseType).Where(x => !x.IsGenericType));
 }
예제 #2
0
 public static IEnumerable <Type> GetConcreteTypesDerivingFrom <T>(this IAssemblyRegistry registry)
 {
     return(registry.GetConcreteTypesDerivingFrom(typeof(T)));
 }