Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace System.IO.Enumeration
- {
- public static class FileSystemName
- {
- // Change '*' and '?' to '<', '>', and '"' to match Win32 behavior
- public static string TranslateWin32Expression(string expression);
- // This matches '*', '?', '<', '>', and '"' wildcards
- public static bool MatchesWin32Expression(ReadOnlySpan<char> expression, ReadOnlySpan<char> name, bool ignoreCase = true);
- // This matches just '*' and '?' wildcards
- public static bool MatchesSimpleExpression(ReadOnlySpan<char> expression, ReadOnlySpan<char> name, bool ignoreCase = true);
- }
- }
Add Comment
Please, Sign In to add comment