Skip to content

RangeFactory Methods

Utility class for creating IRingRange values.

CreateRange(uint, uint)

static
View source
public static IRingRange CreateRange(uint begin, uint end)
Creates a new IRingRange representing the values between the exclusive lower bound, begin, and the inclusive upper bound, end.

Parameters

beginuint
The exclusive lower bound.
enduint
The inclusive upper bound.

Returns

A new IRingRange representing the values between the exclusive lower bound, begin, and the inclusive upper bound, end.

GetSubRanges(IRingRange)

static
View source
public static IEnumerable<ISingleRange> GetSubRanges(IRingRange range)
Gets the contiguous sub-ranges represented by the provided range.

Parameters

rangeIRingRange
The range.

Returns

The contiguous sub-ranges represented by the provided range.