@@ -40,13 +40,13 @@ Next classes provide search functionality:
40
40
Finds all ` *.txt ` files in ` C:\Users ` using one thread method.
41
41
42
42
List<FileInfo > files = FileSearcher.GetFilesFast(@"C:\Users", "* SomePattern* .txt");
43
- Finds all files that match appropriate pattern using several thread in thread pool.
43
+ Finds all files that match appropriate pattern using several threads in thread pool.
44
44
45
45
Task<List<FileInfo >> task = FileSearcher.GetFilesFastAsync(@"C:\" , "a?.txt");
46
- Finds all files that match appropriate pattern using several thread in thread pool as
46
+ Finds all files that match appropriate pattern using several threads in thread pool as
47
47
an asynchronous operation.
48
48
49
- * Second group of methods accept 2 parameters:
49
+ * Second group of methods accepts 2 parameters:
50
50
* ` string folder ` - start search directory
51
51
* ` Func<FileInfo, bool> isValid ` - delegate that determines algorithm of file selection.
52
52
@@ -57,7 +57,7 @@ Next classes provide search functionality:
57
57
return (f.Name.Contains("Pattern") || f.Name.Contains("Pattern2")) &&
58
58
f.LastAccessTime >= new DateTime(2018, 3, 1) && f.Length > 1073741824;
59
59
});
60
- Finds all files that match appropriate conditions using several thread in thread pool as
60
+ Finds all files that match appropriate conditions using several threads in thread pool as
61
61
an asynchronous operation.
62
62
63
63
You also can use regular expressions:
@@ -77,9 +77,9 @@ Next classes provide search functionality:
77
77
* ` event EventHandler<FileEventArgs> FilesFound ` - fires when next portion of files is found.
78
78
Event includes ` List<FileInfo> Files { get; } ` property that contains list of finding files.
79
79
* ` event EventHandler<SearchCompleted> SearchCompleted ` - fires when search process is completed or stopped.
80
- Event includes ` bool IsCanceled { get; } ` property that contains value that defines whether search procees stopped by calling
80
+ Event includes ` bool IsCanceled { get; } ` property that contains value that defines whether search process stopped by calling
81
81
` StopSearch() ` method.
82
- To stop search process possibility one have to use constructor that accept CancellationTokenSource parameter.
82
+ To stop search process possibility one have to use constructor that accepts CancellationTokenSource parameter.
83
83
84
84
Example:
85
85
@@ -96,7 +96,7 @@ Next classes provide search functionality:
96
96
files = new List<FileInfo>(); // create list that will contain search result
97
97
}
98
98
99
- public void Startsearch ()
99
+ public void StartSearch ()
100
100
{
101
101
CancellationTokenSource tokenSource = new CancellationTokenSource();
102
102
// create tokenSource to get stop search process possibility
0 commit comments