Unit Class |
[SerializableAttribute] public abstract class Unit
The Unit type exposes the following members.
Name | Description | |
---|---|---|
![]() | AppliesTo | Gets the Type of measurement that this Unit applies to. |
![]() | BaseFormat | Gets the default format for displaying quantities of the unit. |
![]() | Conversions | Provides the list of conversion factors for this Unit to the ConversionCache. |
![]() | Dimensions | Gets the number of dimensions this Unit represents. |
![]() | Name | Gets the name of the Unit. |
![]() | NamePlural | Gets the name of the Unit when it represents any quantity other than 1. |
![]() | Symbol | Gets the symbol or abbreviation of the Unit. |
Name | Description | |
---|---|---|
![]() | CreateConversionList | When implemented in derived classes, causes the Unit to assemble its list of conversion factors to other units. |
![]() | Equals |
Determines whether the specified Object is equal to the
current Unit.
(Overrides ObjectEquals(Object)) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
![]() | GetHashCode |
Serves as a hash function for a particular type,
suitable for use in hashing algorithms and data structures
like a hash table.
(Overrides ObjectGetHashCode) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
![]() | ToString |
Gets the String representation of this Unit.
(Overrides ObjectToString) |