Exemplo n.º 1
0
 private void Load(AssemblyName assemblyName)
 {
     if (ShouldLoad(assemblyName))
     {
         var assembly = Assembly.Load(assemblyName);
         NewAssemblies.Add(assembly);
         LoadReferenced(assembly);
     }
 }
Exemplo n.º 2
0
        private void Load(string path)
        {
            var assembly = Assembly.LoadFile(path);

            if (ShouldLoad(assembly.GetName()))
            {
                NewAssemblies.Add(assembly);
                LoadReferenced(assembly);
            }
        }