Class DoubleDecoratorExtensions
- Namespace
- Cuemon
- Assembly
- Cuemon.Core.dll
Extension methods for the double struct hidden behind the IDecorator<T> interface.
public static class DoubleDecoratorExtensions
- Inheritance
-
DoubleDecoratorExtensions
Methods
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.
See Also
IDecorator<T>
Decorator<T>