DateRange(IEnumerableDateTimeOffset) Constructor

Creates a new instance of DateRange from a generic list of DateTimeOffset values.

Definition

Namespace: InnerDrive.Core
Assembly: InnerDrive.Core (in InnerDrive.Core.dll) Version: 5.2.9017.0
C#
public DateRange(
	IEnumerable<DateTimeOffset> dateList
)

Parameters

dateList  IEnumerableDateTimeOffset
The list of DateTimeOffset values to use.

Remarks

The DateRange will use the minimum and maximum values of the enumerable list for its Lower and Upper members, respectively. IsUpperInclusive and IsLowerInclusive will be set to true.

Exceptions

ArgumentNullExceptiondateList is null
ArgumentExceptiondateList does not contain any items

See Also