Distance |
The DistanceUnit type exposes the following members.
Name | Description | |
---|---|---|
![]() | Equals(DistanceUnit) | Returns true if other represents the same unit of distance; false otherwise. |
![]() | Equals(Object) |
Returns true if obj is a DistanceUnit instance that
represents the same unit of distance; false otherwise.
(Overrides ValueTypeEquals(Object)) |
![]() | GetHashCode |
Overridden to ensure consistency with Equals.
(Overrides ValueTypeGetHashCode) |
![]() ![]() | GetValues | Returns an array of the available DistanceUnit values. |
![]() | ToString |
Returns a non-null, non-empty string representation of this instance for logging and debugging purposes.
(Overrides ValueTypeToString) |
Name | Description | |
---|---|---|
![]() ![]() | Equality(DistanceUnit, DistanceUnit) | Determines whether two specified DistanceUnit instances are equal. |
![]() ![]() | Inequality(DistanceUnit, DistanceUnit) | Determines whether two specified DistanceUnit instances are not equal. |
Name | Description | |
---|---|---|
![]() ![]() | Feet | For the imperial unit the foot (ft). |
![]() ![]() | Kilometres | For the metric unit the kilometre (km); 1 kilometre = 1000 metres. |
![]() ![]() | Metres | For the SI base unit of length, the metre (m). |
![]() ![]() | Miles | For the imperial unit the mile (mi); 1 mile = 5280 feet. |