RuleNumber

[DebuggerDisplay("{Notation}")] public sealed class RuleNumber : IRule
Represents a rule that tests for a single integer.

Constructors

RuleNumber

#
public RuleNumber(int number)
Create a new number rule.
number (int)Number to match.

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