Table of Contents

Prefix Class

Definition

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

Represents the base class from which all implementations of unit prefix that can can be expressed as either a multiple or a submultiple should derive.

public abstract class Prefix : IPrefix
Inheritance
Prefix
Implements
Derived
Extension Methods

Constructors

Name Description
Prefix(string, string, double, double)

Initializes a new instance of the Prefix class.

Fields

Name Description
None

Defines a prefix multiple of none (0).

Properties

Name Description
Base

Gets the number to be raised of the unit prefix.

Exponent

Gets the exponent of the unit prefix.

Multiplier

Gets the unit prefix multiplier.

Name

Gets the name of the unit prefix.

Symbol

Gets the symbol of the unit prefix.

Methods

Name Description
ToBaseValue(double)

Converts the unit prefixValue back to a unit base value.

ToPrefixValue(double)

Converts the unit base baseValue to a unit prefix value.

ToString()

Returns a string that represents this instance.

See Also