Example #1
0
 public Form1()
 {
     InitializeComponent();
     AssemblyLoader.Attach();
 }
 private static Assembly ReadExistingAssembly(AssemblyName name)
 {
     foreach (Assembly assembly in AppDomain.CurrentDomain.GetAssemblies())
     {
         AssemblyName name2 = assembly.GetName();
         if (string.Equals(name2.Name, name.Name, StringComparison.InvariantCultureIgnoreCase) && string.Equals(AssemblyLoader.CultureToString(name2.CultureInfo), AssemblyLoader.CultureToString(name.CultureInfo), StringComparison.InvariantCultureIgnoreCase))
         {
             return(assembly);
         }
     }
     return(null);
 }