Skip to content

N_CodeJam_Ranges

andrewvk edited this page Jul 1, 2016 · 4 revisions

CodeJam.Ranges Namespace

The CodeJam.Ranges namespace contains types for operations over ranges of values.

Classes

 

Class Description
Public class Range Helper methods for the .
Public class RangeExtensions Extension methods for .

Structures

 

Structure Description
Public structure Range(T) Describes a range of the values.
Public structure Range(T, TKey) Describes a range of the values with a key attached.
Public structure RangeBoundaryFrom(T) The From boundary of the range.
Public structure RangeBoundaryTo(T) The To boundary of the range.

Interfaces

 

Interface Description
Public interface IRange(T) Common interface for different range implementations
Public interface IRangeFactory(T, TRange) Common factory interface to enable 'derived' range creation. Use case example: preserve the key of the range on range intersection.

Enumerations

 

Enumeration Description
Public enumeration RangeBoundaryFromKind The kind of From range boundary.
Public enumeration RangeBoundaryToKind The kind of To range boundary.

Examples

TBD.

Clone this wiki locally