Пример #1
0
 /// <summary>Finds the files matching the specified pattern.</summary>
 /// <param name="pattern">Find pattern.</param>
 /// <returns>Enumerable collection of found files.</returns>
 public IEnumerable <string> FindFiles(string pattern)
 {
     return(SearchPath.FindFiles(this.searchPath, pattern));
 }
Пример #2
0
 /// <summary>Finds the files with the specified extension.</summary>
 /// <param name="extension">File extension.</param>
 /// <returns>Enumerable collection of found files.</returns>
 public IEnumerable <string> FindFilesWithExtension(string extension)
 {
     return(SearchPath.FindFilesWithExtension(this.searchPath, extension));
 }
Пример #3
0
 /// <summary>Finds a file in the folder.</summary>
 /// <param name="filename">File name.</param>
 /// <returns>Path to the file or null if the file was not found.</returns>
 public string FindFile(string filename)
 {
     return(SearchPath.FindFile(this.searchPath, filename));
 }