Table of Contents

ToPrefixUnit Method

Definition

Namespace
Codebelt.Unitify
Assemblies
Codebelt.Unitify.dll
Source
src/Codebelt.Unitify/PrefixExtensions.cs

ToPrefixUnit(IPrefix, IUnit)

Converts the specified IPrefix to an IUnit implementation equivalent.

public static IPrefixUnit ToPrefixUnit(this IPrefix prefix, IUnit unit)

Parameters

prefix IPrefix

The IPrefix to extend.

unit IUnit

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

Returns

IPrefixUnit

An IPrefixUnit implementation.

Exceptions

ArgumentNullException

unit is null.