コード例 #1
0
 public FilterTextExpression(string text, FilterTextMatching matching)
 {
     if (text == null)
     {
         throw new ArgumentNullException(nameof(text));
     }
     _text     = text;
     _matching = matching;
 }
コード例 #2
0
 protected static bool UseCaseInsensitiveRegexMatching(FilterTextExpression optTxt, FilterTextMatching matching)
 {
     return(!(matching == FilterTextMatching.RegularExpression ||
              optTxt?.Matching == FilterTextMatching.Exact));
 }