File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,16 +40,17 @@ public class FileSystemWatcherEx : IDisposable
4040 /// <summary>
4141 /// Filter string used for determining what files are monitored in a directory
4242 /// </summary>
43- public string Filter {
43+ public string Filter
44+ {
4445 get
4546 {
4647 return Filters . Count == 0 ? "*" : Filters [ 0 ] ;
47- }
48+ }
4849 set
4950 {
5051 Filters . Clear ( ) ;
5152 Filters . Add ( value ) ;
52- }
53+ }
5354 }
5455
5556
@@ -230,7 +231,7 @@ void onError(ErrorEventArgs e)
230231
231232 _fsw = _watcher . Create ( FolderPath , onEvent , onError ) ;
232233
233- foreach ( var filter in Filters )
234+ foreach ( var filter in Filters )
234235 {
235236 _fsw . Filters . Add ( filter ) ;
236237 }
@@ -281,7 +282,7 @@ public void Stop()
281282 // stop the thread
282283 _cancelSource . Cancel ( ) ;
283284 }
284-
285+
285286
286287
287288 /// <summary>
You can’t perform that action at this time.
0 commit comments