Click or drag to resize

DayRanges Class

A chronologically-ordered set of one or more non-overlapping DayRange items.
Inheritance Hierarchy
SystemObject
  DegreeDays.TimeDayRanges

Namespace: DegreeDays.Time
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public abstract class DayRanges : IEnumerable<DayRange>, 
	IEnumerable

The DayRanges type exposes the following members.

Properties
 NameDescription
Public propertyCount Gets the number of DayRange items in this set.
Public propertyFullRange Gets the DayRange extending from the first day of the first DayRange to the last day of the last DayRange in this chronologically-ordered set.
Public propertyIsContiguous Gets a value indicating whether each contained DayRange starts the day after the previous DayRange ended (i.e. no gaps).
Public propertyItem Gets the DayRange at the specified position in this chronologically-ordered set.
Top
Methods
 NameDescription
Public methodStatic memberCreate(DayRange) Returns a non-null DayRanges object containing the specified DayRange items.
Public methodStatic memberCreate(IEnumerableDayRange) Returns a non-null DayRanges object containing the specified DayRange items.
Public methodEquals Returns true if obj is a DayRanges object representing the same set of DayRange items as this; false otherwise.
(Overrides ObjectEquals(Object))
Public methodGetEnumerator Returns an enumerator for iterating over each DayRange contained within this chronologically-ordered set.
Public methodGetHashCode Overridden to ensure consistency with Equals.
(Overrides ObjectGetHashCode)
Public methodToString Returns a non-null, non-empty string representation of this instance for logging and debugging purposes.
(Overrides ObjectToString)
Top
Remarks

This abstract class is not designed to be extended by third-party code, which is why it does not have an accessible constructor.

Thread Safety
All concrete subclasses of this abstract class are immutable. You can safely reuse them and call them from multiple threads at once.
Version History
VersionDescription
1.2 This was added in version 1.2.
See Also