Table of Contents

Class ComparableExtensions

Namespace
DotEx.Maths
Assembly
DotEx.dll

Extensions for IComparable.

public static class ComparableExtensions
Inheritance
ComparableExtensions
Inherited Members

Methods

IsBetween(IComparable, IComparable, IComparable)

Checks if value is between the inclusive lower and upper limits.

public static bool IsBetween(this IComparable value, IComparable lower, IComparable upper)

Parameters

value IComparable

Value to check.

lower IComparable

Lower limit for reference.

upper IComparable

Upper limit for reference.

Returns

bool

True if value is between or equal to the limits.