Click or drag to resize

ConversionRatio Methods

The ConversionRatio type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCode exampleCombineThroughBase
Combines two ConversionRatio instances, which are conversion ratios against a single base unit of measure.
Public methodCode exampleConvert
Converts the specified value by applying the conversion ratio.
Public methodCode exampleConvertBack
Converts the specified value back to the original value by applying the ratio backwards.
Public methodStatic memberDivide
Divides the specified ratio by the specified divisor.
Public methodEquals(Object)
Determines whether the specified Object, is equal to this instance.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(ConversionRatio)
Indicates whether the current object is equal to another object of the same type.
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodStatic memberMultiply(ConversionRatio, ConversionRatio)
Multiplies the specified ratios multipliers and the divisors.
Public methodStatic memberMultiply(ConversionRatio, Decimal)
Multiplies the specified ratios multipliers and the divisors.
Public methodToString
Returns a String that represents this instance.
(Overrides ValueTypeToString.)
Top
See Also