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