Class Interval
- Namespace
- SunamoNumbers.Data
- Assembly
- SunamoNumbers.dll
Represents a numeric interval with a signed lower bound and an unsigned upper bound.
public class Interval
- Inheritance
-
Interval
- Inherited Members
- Extension Methods
Properties
From
Gets or sets the lower bound of the interval.
public int From { get; set; }
Property Value
To
Gets or sets the upper bound of the interval.
public uint To { get; set; }
Property Value
Methods
IsNumberInRange(int)
Determines whether the specified number falls within this interval (inclusive).
public bool IsNumberInRange(int numberToCheck)
Parameters
numberToCheckintThe number to check.