RuleRange

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

Constructors

RuleRange

#
public RuleRange(int min, int max)
Create a new range rule.
min (int)Inclusive lower limit.
max (int)Inclusive upper limit.

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