Skip to content

Commit ad4fcc0

Browse files
authored
Update README
1 parent 57b795a commit ad4fcc0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ Next classes provide search functionality:
4040
Finds all `*.txt` files in `C:\Users` using one thread method.
4141

4242
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.
4444

4545
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
4747
an asynchronous operation.
4848

49-
* Second group of methods accept 2 parameters:
49+
* Second group of methods accepts 2 parameters:
5050
* `string folder` - start search directory
5151
* `Func<FileInfo, bool> isValid` - delegate that determines algorithm of file selection.
5252

@@ -57,7 +57,7 @@ Next classes provide search functionality:
5757
return (f.Name.Contains("Pattern") || f.Name.Contains("Pattern2")) &&
5858
f.LastAccessTime >= new DateTime(2018, 3, 1) && f.Length > 1073741824;
5959
});
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
6161
an asynchronous operation.
6262

6363
You also can use regular expressions:
@@ -77,9 +77,9 @@ Next classes provide search functionality:
7777
* `event EventHandler<FileEventArgs> FilesFound` - fires when next portion of files is found.
7878
Event includes `List<FileInfo> Files { get; }` property that contains list of finding files.
7979
* `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
8181
`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.
8383

8484
Example:
8585

@@ -96,7 +96,7 @@ Next classes provide search functionality:
9696
files = new List<FileInfo>(); // create list that will contain search result
9797
}
9898

99-
public void Startsearch()
99+
public void StartSearch()
100100
{
101101
CancellationTokenSource tokenSource = new CancellationTokenSource();
102102
// create tokenSource to get stop search process possibility

0 commit comments

Comments
 (0)