DayRangeGreedyUnion(DayRange) Method |
Returns the DayRange that includes all the days
within this DayRange, the specified DayRange
(rangeToIncludeInUnion), and any days between.
Namespace: DegreeDays.TimeAssembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax public DayRange GreedyUnion(
DayRange rangeToIncludeInUnion
)
Public Function GreedyUnion (
rangeToIncludeInUnion As DayRange
) As DayRange
Parameters
- rangeToIncludeInUnion DayRange
- The DayRange that the
returned DayRange should include (together with this
DayRange and any days between).
Return Value
DayRangeThe
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