SIUnit Methods |
The SIUnit type exposes the following members.
| Name | Description | |
|---|---|---|
| Equals(IUnit) | Compares this unit with another unit obj and returns true if both are equal. To be equal, the other unit has to be (i) a SI unit, and (ii) the same name. Thus, J (Joule) and Nm (Newtonmeter) are not considered equal. | |
| Equals(Object) |
Determines whether the specified Object is equal to this instance.
(Overrides ObjectEquals(Object)) | |
| Equals(SIUnit) | Determines whether this instance and another specified SIUnit object have the same exponents for all base units. Two SI units are considered equal if the exponents are equal, independently of the unit name. This means e.g. that J (Joule), Nm, and Ws are considered equal. | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
| FromSIUnit | Converts x (in SI units) to the corresponding value in this unit. | |
| GetHashCode |
Returns a hash code for this instance.
(Overrides ObjectGetHashCode) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| IsCompatibleTo | Checks whether this SIUnit is compatible with the dimensions described by the provided UnitDescriptionAttribute. | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| ToSIUnit | Converts x to the corresponding SI unit. | |
| ToString | Returns a string that represents the current object. (Inherited from Object) |