DateRange(IEnumerableDateTime) Constructor

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

Definition

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

Parameters

dateList  IEnumerableDateTime
The list of DateTime 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.

This method does not evaluate the Kind member in any way. For more precision, use the DateRange(IEnumerableDateTimeOffset) constructor whenever possible.

Exceptions

ArgumentNullExceptiondateList is null
ArgumentExceptiondateList does not contain any items

See Also