Ejemplo n.º 1
0
 /// <summary>
 /// Add a new assembly reference after configuration.
 /// This is rare but userful for importing external
 /// assemblies.
 /// </summary>
 /// <param name="assembly"></param>
 public static void AddAssembly(Assembly assembly)
 {
     AssemblyHelper.GetUniqueNestedReferencedAssemblies(assembly, Assembly.GetExecutingAssembly().GetName(), AssemblyHelper.Assemblies);
     AssemblyHelper.Types = new HashSet <Type>(
         AssemblyHelper.Assemblies.AsParallel().SelectMany(a => a.GetTypes()));
 }
Ejemplo n.º 2
0
 static AssemblyHelper()
 {
     AssemblyHelper.Assemblies = AssemblyHelper.GetUniqueNestedReferencedAssemblies(Assembly.GetEntryAssembly(), Assembly.GetExecutingAssembly().GetName());
     AssemblyHelper.Types      = new HashSet <Type>(
         AssemblyHelper.Assemblies.AsParallel().SelectMany(a => a.GetTypes()));
 }