Table of Contents

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

int

To

Gets or sets the upper bound of the interval.

public uint To { get; set; }

Property Value

uint

Methods

IsNumberInRange(int)

Determines whether the specified number falls within this interval (inclusive).

public bool IsNumberInRange(int numberToCheck)

Parameters

numberToCheck int

The number to check.

Returns

bool