Exemplo n.º 1
0
 public static void FromAssemblies(params Assembly[] assemblies)
 {
     SpecifyTypes.AddRange(assemblies
                           .SelectMany(assembly => assembly.GetTypes())
                           .Where(p => !SpecifyTypes.Contains(p))
                           .Distinct());
     LoadMode = LoadTypesMode.LoadBySpecify;
 }
Exemplo n.º 2
0
 public static void FromAssemblyOf(params Type[] types)
 {
     SpecifyTypes.AddRange(types
                           .SelectMany(type => type.Assembly.GetTypes())
                           .Where(p => !SpecifyTypes.Contains(p))
                           .Distinct());
     LoadMode = LoadTypesMode.LoadBySpecify;
 }
Exemplo n.º 3
0
 public static void FromDirectories(params string[] directories)
 {
     SpecifyTypes.AddRange(LoadFromDirectories(directories));
     LoadMode = LoadTypesMode.LoadBySpecify;
 }