Click or drag to resize

Speed Methods

The Speed type exposes the following members.

Methods
 NameDescription
Public methodStatic memberAdd(Speed, Speed) Adds two instances of Speed together.
Public methodStatic memberAdd(Speed, Double) Adds an instance of Speed to an instance of Double.
Public methodCloneCreates a new object that is a copy of the current instance.
Public methodCompareToCompares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Public methodConvertTo(Type) Converts the instance into a new IMeasurable instance denominated in the measurement units provided.
Public methodConvertTo(Unit) Converts the instance into a new instance of the same type denominated in the measurement units provided.
Public methodStatic memberDivide Divides an instance of Speed by a double-precision value.
Public methodEquals(Object)Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object))
Public methodEquals(Speed)Indicates whether the current object is equal to another object of the same type.
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 methodGetHashCodeReturns the hash code for this instance.
(Overrides ValueTypeGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberIsInfinity Returns a value indicating whether the specified number evaluates to negative or positive infinity.
Public methodStatic memberIsNaN Returns a value indicating whether the specified number evaluates to a value that is not a number (NaN).
Public methodStatic memberIsNegativeInfinity Returns a value indicating whether the specified number evaluates to negative infinity (NegativeInfinity).
Public methodStatic memberIsPositiveInfinity Returns a value indicating whether the specified number evaluates to positive infinity (PositiveInfinity).
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodStatic memberMultiply Multiplies an instance of Speed by a double-precision value.
Public methodStatic memberNegate Negates the value of the specified Speed operand.
Public methodStatic memberSubtract(Speed, Speed) Subtracts one instance of Speed from another.
Public methodStatic memberSubtract(Speed, Double) Subtracts an instance of Double from an instance of Speed.
Public methodToStringReturns the fully qualified type name of this instance.
(Overrides ValueTypeToString)
Public methodToString(MetricExponent) Converts the numeric value of this instance to its equivalent String representation, using the metric exponent provided if appropriate to the Unit type.
Public methodToString(String) Converts the numeric value of this instance to its equivalent String representation, using the specified format.
Public methodToString(String, MetricExponent) Converts the numeric value of this instance to its equivalent String representation, using the specified format and metric exponent.
Public methodToString(String, IFormatProvider)Formats the value of the current instance using the specified format.
Public methodToString(String, MetricExponent, IFormatProvider) Formats the value of the current instance using the specified format.
Public methodTryFormatTries to format the value of the current instance into the provided span of characters.
Top
Extension Methods
 NameDescription
Public Extension MethodKilometersPerHour Creates a new Speed measured in kilometers per hour
(Defined by SpeedExtensions)
Public Extension MethodKnots Creates a new Speed measured in knots
(Defined by SpeedExtensions)
Public Extension MethodMilesPerHour Creates a new Speed measured in miles per hour
(Defined by SpeedExtensions)
Top
Explicit Interface Implementations
 NameDescription
Explicit interface implementationPrivate methodIComparableCompareToCompares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Top
See Also