Exemplo n.º 1
0
        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))));
        }
Exemplo n.º 2
0
 public static IList <Assembly> LoadDirectory(string directory, string searchPattern)
 {
     return(AssemblyLoader.LoadFiles(Directory.GetFiles(directory, searchPattern)));
 }
Exemplo n.º 3
0
 public static IList <Assembly> LoadDirectory(string directory)
 {
     return(AssemblyLoader.LoadFiles(Directory.GetFiles(directory).Where(f => f.Substring(f.Length - 4, 4).ToLower() == ".dll")));
 }