public static IList <Assembly> LoadDirectory(string directory, string searchPattern)
 {
     return(AssemblyLoader.LoadFiles(Directory.GetFiles(directory, searchPattern)));
 }
 public static IList <Assembly> LoadDirectory(string directory)
 {
     return(AssemblyLoader.LoadFiles(Directory.GetFiles(directory).Where(f => f.Substring(f.Length - 4, 4).ToLower() == ".dll")));
 }