RuleGroup

[DebuggerDisplay("{Notation}")] public sealed class RuleGroup : IRule
Represents a rule that tests for a collection of integers.

Constructors

RuleGroup

#
public RuleGroup(IEnumerable<int> numbers)
Create a new group rule.
numbers (IEnumerable<int>)Number in group. Duplicate entries will be ignored.

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