public static IList <Assembly> LoadDirectory(string directory, string regexSearchPattern, bool ignoreCase)
        {
            var options = ignoreCase ? RegexOptions.IgnoreCase : RegexOptions.None;
            var regex   = new Regex(regexSearchPattern, options);

            return(AssemblyLoader.LoadFiles(Directory.GetFiles(directory).Where(f => regex.IsMatch(f))));
        }
 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")));
 }