Пример #1
0
        private IEnumerable <FileInfo> InternalEnumerateFiles(String searchPattern, SearchOption searchOption)
        {
            Contract.Requires(searchPattern != null);
            Contract.Requires(searchOption == SearchOption.AllDirectories || searchOption == SearchOption.TopDirectoryOnly);

            return(FileSystemEnumerableFactory.CreateFileInfoIterator(FullPath, OriginalPath, searchPattern, searchOption));
        }
Пример #2
0
        // Returns an array of Files in the current DirectoryInfo matching the 
        // given search criteria (ie, "*.txt").
        private FileInfo[] InternalGetFiles(String searchPattern, SearchOption searchOption)
        {
            Contract.Requires(searchPattern != null);
            Contract.Requires(searchOption == SearchOption.AllDirectories || searchOption == SearchOption.TopDirectoryOnly);

            IEnumerable<FileInfo> enble = FileSystemEnumerableFactory.CreateFileInfoIterator(FullPath, OriginalPath, searchPattern, searchOption);
            List<FileInfo> fileList = new List<FileInfo>(enble);
            return fileList.ToArray();
        }
        private FileInfo[] InternalGetFiles(string searchPattern, SearchOption searchOption)
        {
            List <FileInfo> list = new List <FileInfo>(FileSystemEnumerableFactory.CreateFileInfoIterator(base.FullPath, base.OriginalPath, searchPattern, searchOption));

            return(list.ToArray());
        }
 private IEnumerable <FileInfo> InternalEnumerateFiles(string searchPattern, SearchOption searchOption)
 {
     return(FileSystemEnumerableFactory.CreateFileInfoIterator(base.FullPath, base.OriginalPath, searchPattern, searchOption));
 }