示例#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;