Table of Contents

Class Range

Namespace
Bonsai
Assembly
Bonsai.Core.dll

Provides static methods for creating range objects.

public static class Range
Inheritance
Range
Inherited Members

Methods

Create<TValue>(TValue, TValue)

Creates a new range with the specified lower and upper bounds.

public static Range<TValue> Create<TValue>(TValue lowerBound, TValue upperBound)

Parameters

lowerBound TValue

The inclusive lower bound of the range.

upperBound TValue

The inclusive lower bound of the range.

Returns

Range<TValue>

A new instance of the Range<TValue> class.

Type Parameters

TValue

The type of values in the range.

Create<TValue>(TValue, TValue, IComparer<TValue>)

Creates a new range with the specified lower and upper bounds and using the specified comparer.

public static Range<TValue> Create<TValue>(TValue lowerBound, TValue upperBound, IComparer<TValue> comparer)

Parameters

lowerBound TValue

The inclusive lower bound of the range.

upperBound TValue

The inclusive lower bound of the range.

comparer IComparer<TValue>

An IComparer<T> to use to compare values.

Returns

Range<TValue>

A new instance of the Range<TValue> class.

Type Parameters

TValue

The type of values in the range.