Table of Contents

TimeRange Constructor

Definition

Namespace
Cuemon
Assemblies
Cuemon.Kernel.dll
Source
src/Cuemon.Kernel/TimeRange.cs

TimeRange(TimeSpan, TimeSpan, Func<TimeSpan>)

Initializes a new instance of the TimeRange struct.

public TimeRange(TimeSpan start, TimeSpan end, Func<TimeSpan> duration = null)

Parameters

start TimeSpan

The start of a time range.

end TimeSpan

The end of a time range.

duration Func<TimeSpan>

A function delegate that returns the duration of the time range. If not provided, the duration is calculated as the difference between end and start.