Table of Contents

ToBaseUnit Method

Definition

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

ToBaseUnit(IPrefix, IBaseUnit, double)

Converts the specified IPrefix to a base unit.

public static IUnit ToBaseUnit(this IPrefix prefix, IBaseUnit baseUnit, double value)

Parameters

prefix IPrefix

The IPrefix to extend.

baseUnit IBaseUnit

The base unit of measurement.

value double

The value of the base unit.

Returns

IUnit

An IUnit implementation.

Exceptions

ArgumentNullException

prefix is null -or- baseUnit is null.