Range<T>

Implements IRange<T>

Declaration

[Serializable]
public struct Range<T> : IRange<T> where T : IComparable<T>

Description

A range of values of the given type.

Type Parameters

TThe type of values in the range.

Properties

minThe lower bound of the range.
maxThe upper bound of the range.

Constructors

RangeCreates a new range with the specified values.

Methods

IncludesChecks if a value is in the range.