Click or drag to resize

DayRangeIntersection Method

Returns a DayRange covering the days that are contained within both this DayRange and the specified DayRange, or null if there is no such intersection.

Namespace: DegreeDays.Time
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public DayRange? Intersection(
	DayRange intersectWith
)

Parameters

intersectWith  DayRange
The other DayRange that the intersection should be calculated from (together with this DayRange).

Return Value

NullableDayRange
A DayRange covering the days that are contained within both this DayRange and the specified DayRange, or null if there is no such intersection.
Remarks

By definition, a.Intersection(b) will always give the same result as b.Intersection(a).

See Also