Click or drag to resize

DistanceUnit Structure

Defines the units of distance measurement with constants to represent metres, kilometres, feet, and miles.
Inheritance Hierarchy
SystemObject
  SystemValueType
    DegreeDays.GeoDistanceUnit

Namespace: DegreeDays.Geo
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public struct DistanceUnit : IEquatable<DistanceUnit>

The DistanceUnit type exposes the following members.

Methods
 NameDescription
Public methodEquals(DistanceUnit) Returns true if other represents the same unit of distance; false otherwise.
Public methodEquals(Object) Returns true if obj is a DistanceUnit instance that represents the same unit of distance; false otherwise.
(Overrides ValueTypeEquals(Object))
Public methodGetHashCode Overridden to ensure consistency with Equals.
(Overrides ValueTypeGetHashCode)
Public methodStatic memberGetValues Returns an array of the available DistanceUnit values.
Public methodToString Returns a non-null, non-empty string representation of this instance for logging and debugging purposes.
(Overrides ValueTypeToString)
Top
Operators
 NameDescription
Public operatorStatic memberEquality(DistanceUnit, DistanceUnit) Determines whether two specified DistanceUnit instances are equal.
Public operatorStatic memberInequality(DistanceUnit, DistanceUnit) Determines whether two specified DistanceUnit instances are not equal.
Top
Fields
 NameDescription
Public fieldStatic memberFeet For the imperial unit the foot (ft).
Public fieldStatic memberKilometres For the metric unit the kilometre (km); 1 kilometre = 1000 metres.
Public fieldStatic memberMetres For the SI base unit of length, the metre (m).
Public fieldStatic memberMiles For the imperial unit the mile (mi); 1 mile = 5280 feet.
Top
Thread Safety
Instances of this struct are immutable and safe for use from multiple threads at once. The only values that can exist are those declared here as static readonly fields.
See Also