Table of Contents

Class PrefixMultipleDecoratorExtensions

Namespace
Cuemon
Assembly
Cuemon.Core.dll

Extension methods for the IPrefixMultiple class hidden behind the IDecorator<T> interface.

public static class PrefixMultipleDecoratorExtensions
Inheritance
Object
PrefixMultipleDecoratorExtensions

Methods

ApplyPrefix(IDecorator<IPrefixMultiple>, IPrefixUnit, Action<UnitFormatOptions>)

Converts the enclosed IPrefixMultiple of the decorator to an IPrefixUnit implementation equivalent.

public static IPrefixUnit ApplyPrefix(this IDecorator<IPrefixMultiple> decorator, IPrefixUnit unit, Action<UnitFormatOptions> setup = null)

Parameters

decorator IDecorator<IPrefixMultiple>

The IDecorator<T> to extend.

unit IPrefixUnit

The unit of measurement that is used as a standard for measurement of the same kind of quantity.

setup Action<UnitFormatOptions>

The UnitFormatOptions which may be configured.

Returns

IPrefixUnit

An IPrefixUnit implementation.

See Also