Click or drag to resize

DayRange Methods

The DayRange type exposes the following members.

Methods
 NameDescription
Public methodContains(Day) Returns true if the specified Day is contained within this DayRange; false otherwise.
Public methodContains(DayRange) Returns true if the specified DayRange is fully contained within this DayRange; false otherwise.
Public methodEquals(DayRange) Returns true if other covers exactly the same days as this DayRange; false otherwise.
Public methodEquals(Object) Returns true if obj is a DayRange that covers exactly the same days as this DayRange; false otherwise.
(Overrides ValueTypeEquals(Object))
Public methodGetEnumerator Returns an enumerator for iterating over each Day contained within this DayRange.
Public methodGetHashCode Overridden to ensure consistency with Equals.
(Overrides ValueTypeGetHashCode)
Public methodGreedyUnion(Day) Returns the DayRange that includes all the days within this DayRange, the specified Day (dayToIncludeInUnion), and any days between.
Public methodGreedyUnion(DayRange) Returns the DayRange that includes all the days within this DayRange, the specified DayRange (rangeToIncludeInUnion), and any days between.
Public methodIndexOf Returns the index of the specified Day within this DayRange, or -1 if it is not contained within this DayRange.
Public methodIntersection 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.
Public methodToString Returns a non-null, non-empty string representation of this instance for logging and debugging purposes.
(Overrides ValueTypeToString)
Top
See Also