DateRange(DateTimeOffset, TimeSpan) Constructor

Creates a new instance of DateRange from existing DateTimeOffset and TimeSpan values.

Definition

Namespace: InnerDrive.Core
Assembly: InnerDrive.Core (in InnerDrive.Core.dll) Version: 5.2.9017.0
C#
public DateRange(
	DateTimeOffset lowerValue,
	TimeSpan timeSpan
)

Parameters

lowerValue  DateTimeOffset
The DateTimeOffset value representing the beginning of the date range.
timeSpan  TimeSpan
The TimeSpan value representing the duration of the date range.

Exceptions

ArgumentExceptiontimeSpan represents a negative value

See Also