Baseline.FileSet.ExcludedFilesFor C# (CSharp) Метод

ExcludedFilesFor() публичный Метод

public ExcludedFilesFor ( string path ) : IEnumerable
path string
Результат IEnumerable
        public IEnumerable<string> ExcludedFilesFor(string path)
        {
            return getAllDistinctFiles(path, Exclude);
        }

Usage Example

Пример #1
0
        public IEnumerable <string> FindFiles(string directory, FileSet searchSpecification)
        {
            var excluded = searchSpecification.ExcludedFilesFor(directory).ToArray();
            var files    = searchSpecification.IncludedFilesFor(directory).ToList();

            files.RemoveAll(s => excluded.Contains(s));

            return(files);
        }