Esempio n. 1
0
 /// <summary>
 /// Load the types of the given assembly
 /// </summary>
 /// <param name="assembly">The assembly to load</param>
 public void LoadAssembly(Assembly assembly)
 {
     if (assembly == null)
     {
         throw new ArgumentNullException(nameof(assembly));
     }
     Parallel.ForEach(assembly.ExportedTypes, (Type t) =>
     {
         string?error = null;
         Modules.AddIfModuleType(t);
         Types.Add(t, ref error);
     });
 }