예제 #1
0
 public static bool Matches(this PatternMatcher matcher, string candidate)
 => matcher.GetFirstMatch(candidate) != null;
예제 #2
0
 public static bool Matches(this PatternMatcher matcher, [NotNullWhen(true)] string?candidate)
 => matcher.GetFirstMatch(candidate) != null;