Click or drag to resize

DateRange(IEnumerableDateTime) Constructor

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

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

Parameters

dateList  IEnumerableDateTime
The list of DateTime values to use.
Exceptions
ExceptionCondition
ArgumentNullExceptiondateList is null
ArgumentExceptiondateList does not contain any items
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.

See Also