ToTimeSpan Method
Definition
- Namespace
- Cuemon
- Assemblies
- Cuemon.Core.dll
ToTimeSpan(IDecorator<double>, TimeUnit)
public static TimeSpan ToTimeSpan(this IDecorator<double> decorator, TimeUnit unitOfTime)
Parameters
decoratorIDecorator<double>The IDecorator<T> to extend.
unitOfTimeTimeUnitOne of the enumeration values that specifies the outcome of the conversion.
Returns
Exceptions
- ArgumentNullException
decoratorcannot be null.- OverflowException
The enclosed double of the
decoratorpaired withunitOfTimeis outside its valid range.- InvalidEnumArgumentException
unitOfTimewas outside its valid range.