The Unit type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| Convert | Overloaded. Converts a measurement from one Unit to a different specified Unit of the same UnitType. | |
| Equals | (Inherited from Object.) | |
| Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetDisplayName |
Returns the name of the Unit in a format suitable for display in a user interface,
in a simplified or more detailed form.
| |
| GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetPluralName |
Returns the plural name of the Unit in a format suitable for display in a user interface,
in a simplified or more detailed form.
| |
| GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
| MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| ToString |
Returns a string representation of this Unit.
(Overrides Object..::.ToString()()().) | |
| TryConvert | Overloaded. Attempts to convert a measurement from one Unit to a different specified Unit of the same UnitType. |