Click or drag to resize

DayRangeGreedyUnion(DayRange) Method

Returns the DayRange that includes all the days within this DayRange, the specified DayRange (rangeToIncludeInUnion), and any days between.

Namespace: DegreeDays.Time
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public DayRange GreedyUnion(
	DayRange rangeToIncludeInUnion
)

Parameters

rangeToIncludeInUnion  DayRange
The DayRange that the returned DayRange should include (together with this DayRange and any days between).

Return Value

DayRange
The DayRange that includes all the days within this DayRange, rangeToIncludeInUnion, and any days between.
Remarks

This method is "greedy" because, if there is a gap between this DayRange and rangeToIncludeInUnion, that gap will be included in the returned DayRange.

See Also