Click or drag to resize

Mile Class

Represents a mile, a unit of Length in the English System.
Inheritance Hierarchy
SystemObject
  InnerDrive.QuantitativeUnit
    InnerDrive.Quantitative.UnitsMile

Namespace: InnerDrive.Quantitative.Units
Assembly: InnerDrive.Quantitative (in InnerDrive.Quantitative.dll) Version: 5.0.8475.0
Syntax
C#
[SerializableAttribute]
[EnglishAttribute]
public class Mile : Unit

The Mile type exposes the following members.

Constructors
 NameDescription
Public methodMile Creates a new instance of Mile.
Top
Properties
 NameDescription
Public propertyAppliesTo Gets the Type of measurement that this Unit applies to.
(Inherited from Unit)
Public propertyBaseFormat Gets the default format for displaying quantities of the unit.
(Inherited from Unit)
Public propertyConversions Provides the list of conversion factors for this Unit to the ConversionCache.
(Inherited from Unit)
Public propertyDimensions Gets the number of dimensions this Unit represents.
(Inherited from Unit)
Public propertyName Gets the name of the Unit.
(Inherited from Unit)
Public propertyNamePlural Gets the name of the Unit when it represents any quantity other than 1.
(Inherited from Unit)
Public propertySymbol Gets the symbol or abbreviation of the Unit.
(Inherited from Unit)
Top
Methods
 NameDescription
Protected methodCreateConversionList When implemented in derived classes, causes the Unit to assemble its list of conversion factors to other units.
(Overrides UnitCreateConversionList)
Public methodEquals Determines whether the specified Object is equal to the current Unit.
(Inherited from Unit)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCode Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Unit)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToString Gets the String representation of this Unit.
(Inherited from Unit)
Top
Remarks
The conversion factors in this class are based on the international mile, which is exactly 5280 international feet, or about 1609.344 meters. This differs from the slightly longer survey mile (1609.347 m), which is based on 5280 survey feet.

Defined conversions:
Target unitFactor
Foot5 280
Inch63 360
Meter1 609.344
Mile1
MileNautical0.869 565 217 4
Yard1 760

See Also