PageRenderTime 193ms CodeModel.GetById 71ms app.highlight 1ms RepoModel.GetById 120ms app.codeStats 0ms

/src/LinFu.Reflection/Interfaces/IDirectoryListing.cs

http://github.com/philiplaureano/LinFu
C# | 20 lines | 8 code | 1 blank | 11 comment | 0 complexity | c82940ff74f78c183dd61b61efce1888 MD5 | raw file
 1using System.Collections.Generic;
 2
 3namespace LinFu.Reflection
 4{
 5    /// <summary>
 6    ///     Represents a class that can list the files
 7    ///     in a given directory.
 8    /// </summary>
 9    public interface IDirectoryListing
10    {
11        /// <summary>
12        ///     Returns the names of the files in the specified directory
13        ///     that match the specified search pattern.
14        /// </summary>
15        /// <param name="path">The directory to search.</param>
16        /// <param name="searchPattern">The search string to match against the names of the files in the <paramref name="path" />.</param>
17        /// <returns>The list of files that match the <paramref name="path" /> and <paramref name="searchPattern" /></returns>
18        IEnumerable<string> GetFiles(string path, string searchPattern);
19    }
20}