コード例 #1
0
 public PathFilter([CanBeNull] string text, bool allowEmptyString)
 {
     if (allowEmptyString && text == string.Empty)
     {
         Text     = string.Empty;
         sequence = PathPattern.ParsePattern("*");
     }
     else
     {
         Text     = string.IsNullOrEmpty(text) ? "*.*" : text;
         sequence = PathPattern.ParsePattern(Text == "*.*" ? "*" : Text);
     }
 }