Show / Hide Table of Contents

Class PrefixMultipleDecoratorExtensions

Extension methods for the IPrefixMultiple class tailored to adhere the decorator pattern.

Inheritance
Object
PrefixMultipleDecoratorExtensions
Namespace: Cuemon
Assembly: Cuemon.Core.dll
Syntax
public static class PrefixMultipleDecoratorExtensions

Methods

| Improve this Doc View Source

ApplyPrefix(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>
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright 2008-2022 Geekle. All rights reserved. Code with passion and love; deploy with confidence. 👨‍💻️🔥❤️🚀😎
Generated by DocFX