RuleChain

[DebuggerDisplay("{Notation}")] public sealed class RuleChain : IRule
Represents a rule that combines other rules.

Constructors

RuleChain

#
public RuleChain(IEnumerable<IRule> rules, IEnumerable<RuleOperator> operators)
Create a new set of chained rules.
rules (IEnumerable<IRule>)Rules to chain.
operators (IEnumerable<RuleOperator>)Chain operators.

Properties

Notation

#
public string Notation { get; }
Gets the string notation/representation for this type.
Notation

Methods

Apply

#
public bool Apply(int number)
Applies this type to an integer.
number (int)Integer to match.
True if the integer passes the type test.
Apply