public StringFilter(FilterAction action, FeedField scope, IEnumerable<string> patterns) : base(action, scope) { if (patterns == null) throw new ArgumentNullException("patterns"); this.patterns = patterns.ToArray(); }
public RegexFilter(FilterAction action, FeedField scope, IEnumerable<string> patterns) : base(action, scope) { if (patterns == null) throw new ArgumentNullException("patterns"); this.regularExpressions = patterns .Select(pattern => new Regex(pattern, RegexOptions.Compiled | RegexOptions.Singleline | RegexOptions.Multiline | RegexOptions.IgnoreCase)) .ToArray(); }
public StringFilter(FilterAction action, FeedField scope, IEnumerable <string> patterns) : base(action, scope) { if (patterns == null) { throw new ArgumentNullException("patterns"); } this.patterns = patterns.ToArray(); }
public RegexFilter(FilterAction action, FeedField scope, IEnumerable <string> patterns) : base(action, scope) { if (patterns == null) { throw new ArgumentNullException("patterns"); } this.regularExpressions = patterns .Select(pattern => new Regex(pattern, RegexOptions.Compiled | RegexOptions.Singleline | RegexOptions.Multiline | RegexOptions.IgnoreCase)) .ToArray(); }
public Filter(FilterAction action, FeedField field) { this.Action = action; this.Field = field; }