Length Methods

Methods

CompareTo(Double) Compares this instance to a specified Double and returns an indication of their relative values.
CompareTo(Length) Compares this instance to a specified Length and returns an indication of their relative values.
CompareTo(Object) Compares this instance to a specified object and returns an indication of their relative values.
ConvertFrom Converts the value in the specified sourceUnit to a new Length in meters.
ConvertTo Converts the Length to the specified targetUnit.
Equals(Double) Returns a value indicating whether this instance is equal to a specified Double value.
Equals(Length) Returns a value indicating whether this instance is equal to a specified Length value.
Equals(Object) Returns a value indicating whether this instance is equal to a specified object.
(Overrides ValueTypeEquals(Object))
FromFeet Creates a new Length value from the specified value in feet.
FromInches Creates a new Length value from the specified value in inches.
FromLightSeconds Creates a new Length value from the specified value in light-seconds.
FromMiles Creates a new Length value from the specified value in miles.
FromNauticalMiles Creates a new Length value from the specified value in nautical miles.
FromUSSurveyFeet Creates a new Length value from the specified value in US survey feet.
FromUSSurveyMiles Creates a new Length value from the specified value in US survey miles.
FromYards Creates a new Length value from the specified value in yards.
GetHashCode Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode)
GetTypeGets the Type of the current instance.
(Inherited from Object)
GetTypeCode Returns the TypeCode for value type Double.
Parse(String) Converts the string representation of a number to its Length equivalent.
Parse(String, NumberStyles) Converts the string representation of a number in a specified style to its Length equivalent.
Parse(String, IFormatProvider) Converts the string representation of a number in a specified culture-specific format to its Length equivalent.
Parse(String, NumberStyles, IFormatProvider) Converts the string representation of a number in a specified style and culture-specific format to its Length equivalent.
ToFeet Gets the Length value in feet.
ToInches Gets the Length value in inches.
ToLightSeconds Gets the Length value in light-seconds.
ToMiles Gets the Length value in miles.
ToNauticalMiles Gets the Length value in nautical miles.
ToString Converts the numeric value of this instance to its equivalent string representation.
(Overrides ValueTypeToString)
ToString(IFormatProvider) Converts the numeric value of this instance to its equivalent string representation using the specified culture-specific format information.
ToString(String) Converts the numeric value of this instance to its equivalent string representation, using the specified format.
ToString(String, IFormatProvider) Converts the numeric value of this instance to its equivalent string representation using the specified format and culture-specific format information.
ToUSSurveyFeet Gets the Length value in US survey feet.
ToUSSurveyMiles Gets the Length value in US survey miles.
ToYards Gets the Length value in yards.
TryParse(String, Length) Converts the string representation of a number to its Length equivalent. A return value indicates whether the conversion succeeded or failed.
TryParse(String, NumberStyles, IFormatProvider, Length) Converts the string representation of a number in a specified style and culture-specific format to its Length equivalent. A return value indicates whether the conversion succeeded or failed.

Extension Methods

GetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
GetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)

See Also