Click or drag to resize

DayRangesCreate(IEnumerableDayRange) Method

Returns a non-null DayRanges object containing the specified DayRange items.

Namespace: DegreeDays.Time
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public static DayRanges Create(
	IEnumerable<DayRange> dayRangeItems
)

Parameters

dayRangeItems  IEnumerableDayRange
A chronologically-ordered collection of non-overlapping DayRange items. Cannot be null and cannot be empty.

Return Value

DayRanges
Exceptions
ExceptionCondition
ArgumentNullExceptiondayRangeItems is null.
ArgumentExceptiondayRangeItems is empty, or if any of the DayRange items within it overlap or are not in chronological order.
See Also