Prefix Class
Definition
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 |
| ToPrefixValue(double) | Converts the unit base |
| ToString() | Returns a string that represents this instance. |