Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ MatchPattern()

bool System.IO.FileSystemWatcher.MatchPattern ( ReadOnlySpan< char > relativePath)
inlineprivate

Definition at line 459 of file FileSystemWatcher.cs.

460 {
462 if (fileName.Length == 0)
463 {
464 return false;
465 }
466 string[] filters = _filters.GetFilters();
467 if (filters.Length == 0)
468 {
469 return true;
470 }
471 string[] array = filters;
472 foreach (string text in array)
473 {
475 {
476 return true;
477 }
478 }
479 return false;
480 }
static bool MatchesSimpleExpression(ReadOnlySpan< char > expression, ReadOnlySpan< char > name, bool ignoreCase=true)
readonly NormalizedFilterCollection _filters
static bool IsCaseSensitive
static ? string GetFileName(string? path)
Definition Path.cs:200

References System.IO.FileSystemWatcher._filters, System.array, System.IO.Path.GetFileName(), System.IO.FileSystemWatcher.NormalizedFilterCollection.GetFilters(), System.IO.PathInternal.IsCaseSensitive, System.IO.Enumeration.FileSystemName.MatchesSimpleExpression(), and System.text.

Referenced by System.IO.FileSystemWatcher.NotifyFileSystemEventArgs(), and System.IO.FileSystemWatcher.NotifyRenameEventArgs().