Class DoubleDecoratorExtensions
Extension methods for the Double struct tailored to adhere the decorator pattern.
Namespace: Cuemon
Assembly: Cuemon.Core.dll
Syntax
public static class DoubleDecoratorExtensions
Methods
| Improve this Doc View SourceToTimeSpan(IDecorator<Double>, TimeUnit)
Declaration
public static TimeSpan ToTimeSpan(this IDecorator<double> decorator, TimeUnit unitOfTime)
Parameters
Type | Name | Description |
---|---|---|
IDecorator<Double> | decorator | The IDecorator<T> to extend. |
TimeUnit | unitOfTime | One of the enumeration values that specifies the outcome of the conversion. |
Returns
Type | Description |
---|---|
TimeSpan | A TimeSpan that corresponds to the enclosed Double of the |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
OverflowException | The enclosed Double of the |
InvalidEnumArgumentException |
|
See Also
IDecorator<T>
Decorator<T>