Ejemplo n.º 1
0
        private IEnumerable <FileSystemInfo> InternalEnumerateFileSystemInfos(String searchPattern, SearchOption searchOption)
        {
            Contract.Requires(searchPattern != null);
            Contract.Requires(searchOption == SearchOption.AllDirectories || searchOption == SearchOption.TopDirectoryOnly);

            return(FileSystemEnumerableFactory.CreateFileSystemInfoIterator(FullPath, OriginalPath, searchPattern, searchOption));
        }
Ejemplo n.º 2
0
        // Returns an array of strongly typed FileSystemInfo entries in the path with the
        // given search criteria (ie, "*.txt").
        private FileSystemInfo[] InternalGetFileSystemInfos(String searchPattern, SearchOption searchOption)
        {
            Contract.Requires(searchPattern != null);
            Contract.Requires(searchOption == SearchOption.AllDirectories || searchOption == SearchOption.TopDirectoryOnly);

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

            return(list.ToArray());
        }
 private IEnumerable <FileSystemInfo> InternalEnumerateFileSystemInfos(string searchPattern, SearchOption searchOption)
 {
     return(FileSystemEnumerableFactory.CreateFileSystemInfoIterator(base.FullPath, base.OriginalPath, searchPattern, searchOption));
 }