Distance Methods

The Distance type exposes the following members.

Methods
  NameDescription
Public methodCompareTo
Compares the current object with another object of the same type.
Public methodCode exampleConvertTo
Converts the distance to the specified units.
Public methodEquals(Object)
Indicates whether the current instance and the specified object are equal.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Distance)
Indicates whether the current object is equal to another object of the same type.
Public methodStatic memberCode exampleFromDecimalString(String)
Creates a distance from a decimal string representation.
Public methodStatic memberCode exampleFromDecimalString(String, IFormatProvider)
Creates a distance from a decimal string representation.
Public methodStatic memberCode exampleFromDecimalString(String, IFormatProvider, DistanceUnitType)
Creates a distance from a decimal string representation.
Public methodStatic memberCode exampleFromFractionalFeetAndInchesString(String)
Creates a distance from a string representation of fractional feet and inches.
Public methodStatic memberCode exampleFromFractionalFeetAndInchesString(String, IFormatProvider, DistanceUnitType)
Creates a distance from a string representation of fractional feet and inches.
Public methodGetHashCode
Returns the hash code for the current instance.
(Overrides ValueTypeGetHashCode.)
Public methodStatic memberCode exampleParse(String)
Parses a distance from a string representation using the current unit type and culture.
Public methodStatic memberCode exampleParse(String, IFormatProvider)
Parses a distance from a string representation using the current unit type and the given culture.
Public methodStatic memberCode exampleParse(String, IFormatProvider, DistanceUnitType)
Parses a distance from a string representation using the given unit type and culture.
Public methodCode exampleToDecimalString
Converts the distance to a decimal string representation.
Public methodCode exampleToDecimalString(IFormatProvider)
Converts the distance to a decimal string representation.
Public methodCode exampleToDecimalString(String)
Converts the distance to a decimal string representation.
Public methodCode exampleToDecimalString(String, IFormatProvider)
Converts the distance to a decimal string representation.
Public methodCode exampleToDecimalString(String, IFormatProvider, DistanceUnitType)
Converts the distance to a decimal string representation.
Public methodCode exampleToFractionalFeetAndInchesString
Creates a string representation of the distance in feet and inches.
Public methodCode exampleToFractionalFeetAndInchesString(IFormatProvider)
Creates a string representation of the distance in feet and inches.
Public methodCode exampleToFractionalInchesString
Creates a string representation of the distance in inches.
Public methodCode exampleToFractionalInchesString(IFormatProvider)
Creates a string representation of the distance in inches.
Public methodCode exampleToString
Creates a string representation of the distance.
(Overrides ValueTypeToString.)
Public methodCode exampleToString(IFormatProvider)
Creates a string representation of the distance.
Public methodCode exampleToString(String)
Creates a string representation of the distance.
Public methodCode exampleToString(String, IFormatProvider)
Creates a string representation of the distance.
Public methodCode exampleToString(String, IFormatProvider, DistanceUnitType)
Creates a string representation of the distance.
Public methodStatic memberCode exampleTryParse(String, Distance)
Attempts to parse a distance from a string representation using the current units.
Public methodStatic memberCode exampleTryParse(String, IFormatProvider, Distance)
Attempts to parse a distance from a string representation using the current units.
Public methodStatic memberCode exampleTryParse(String, IFormatProvider, DistanceUnitType, Distance)
Attempts to parse a distance from a string representation using the current units.
Top
See Also
Was this helpful?
The feedback you give here is not visible to other users. We use your comments to improve the content.
Previous
Next