Unit Class
Definition
Represents the base class from which all implementations of a unit of measure should derive.
public abstract class Unit : IUnit, IBaseUnit, IEquatable<IUnit>
- Inheritance
-
Unit
- Implements
- Derived
Constructors
| Name | Description |
|---|---|
| Unit(IBaseUnit, double, Action<UnitFormatOptions>) | Initializes a new instance of the Unit class. |
Properties
| Name | Description |
|---|---|
| Ampere | Gets the SI base unit for Electric Current. |
| Becquerel | Gets the SI unit for Radioactivity. |
| Bit | Gets the base unit for Data Quantity. |
| BitPerSecond | Gets the base unit for Transmission Rate. |
| Byte | Gets the unit for Data Quantity. |
| Candela | Gets the SI base unit for Luminous Intensity. |
| Category | Gets the category of unit. |
| Celsius | Gets the SI unit for Temperature. |
| Coulomb | Gets the SI unit for Electric Charge. |
| Farad | Gets the SI unit for Electric Capacitance. |
| FormatOptions | Gets the format options of the unit. |
| Gram | Gets the opinionated base unit for Mass. |
| Gray | Gets the SI unit for Absorbed Dose. |
| Henry | Gets the opinionated base unit for Inductance. |
| Hertz | Gets the SI unit for Frequency. |
| Joule | Gets the SI unit for Energy. |
| Katal | Gets the SI unit for Catalytic Activity. |
| Kelvin | Gets the SI base unit for Temperature. |
| Lumen | Gets the SI unit for Luminous Flux. |
| Lux | Gets the SI unit for Illuminance. |
| Meter | Gets the SI base unit for Length. |
| Mole | Gets the SI base unit for Amount of Substance. |
| Name | Gets the name of this unit. |
| Newton | Gets the SI unit for Force. |
| Ohm | Gets the SI unit for Electric Resistance. |
| Pascal | Gets the SI unit for Pressure. |
| Radian | Gets the SI unit for Plane Angle. |
| Second | Gets the SI base unit for Time. |
| Siemens | Gets the SI unit for Electric Conductance. |
| Sievert | Gets the SI unit for Equivalent Dose. |
| Steradian | Gets the SI unit for Solid Angle. |
| Symbol | Gets the symbol of this unit. |
| Tesla | Gets the SI unit for Magnetic Flux Density. |
| Value | Gets the value of this unit expressed as bytes. |
| Volt | Gets the SI unit for Electric Potential. |
| Watt | Gets the SI unit for Power. |
| Weber | Gets the SI unit for Magnetic Flux. |
Methods
| Name | Description |
|---|---|
| Equals(IUnit) | Indicates whether the current object is equal to another object of the same type. |
| Equals(object) | Determines whether the specified object is equal to the current object. |
| GetHashCode() | Returns a hash code for this instance. |
| ToString() | Returns a string that represents this instance. |
Operators
| Name | Description |
|---|---|
| implicit operator double(Unit) |