Class PrefixMultipleDecoratorExtensions
Extension methods for the IPrefixMultiple class tailored to adhere the decorator pattern.
Namespace: Cuemon
Assembly: Cuemon.Core.dll
Syntax
public static class PrefixMultipleDecoratorExtensions
Methods
| Improve this Doc View SourceApplyPrefix(IDecorator<IPrefixMultiple>, IPrefixUnit, Action<UnitFormatOptions>)
Converts the enclosed IPrefixMultiple of the decorator
to an IPrefixUnit implementation equivalent.
Declaration
public static IPrefixUnit ApplyPrefix(this IDecorator<IPrefixMultiple> decorator, IPrefixUnit unit, Action<UnitFormatOptions> setup = null)
Parameters
Type | Name | Description |
---|---|---|
IDecorator<IPrefixMultiple> | decorator | The IDecorator<T> to extend. |
IPrefixUnit | unit | The unit of measurement that is used as a standard for measurement of the same kind of quantity. |
Action<UnitFormatOptions> | setup | The UnitFormatOptions which may be configured. |
Returns
Type | Description |
---|---|
IPrefixUnit | An IPrefixUnit implementation. |
See Also
IDecorator<T>
Decorator<T>