Click or drag to resize

ConversionRatio Class

Represents a conversion ratio between units of measure
Inheritance Hierarchy
SystemObject
  SystemValueType
    Aloe.EnterpriseOne.Model.Core.MetricsConversionRatio

Namespace:  Aloe.EnterpriseOne.Model.Core.Metrics
Assembly:  Aloe.EnterpriseOne.Model (in Aloe.EnterpriseOne.Model.dll) Version: 20.1.3.5
Syntax
public sealed class ConversionRatio : ValueType, 
	IEquatable<ConversionRatio>

The ConversionRatio type exposes the following members.

Constructors
  NameDescription
Public methodConversionRatio
Initializes a new instance of the ConversionRatio struct.
Top
Properties
  NameDescription
Public propertyDivisor
Gets the divisor.
Public propertyMultiplier
Gets the multiplier.
Public propertyStatic memberZero
Gets the zero ConversionRatio, e.g. (0/1).
Top
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
Operators
  NameDescription
Public operatorStatic memberDivision
Implements the operator *. This multiplies the multipliers and the divisors.
Public operatorStatic memberEquality
Implements the operator ==.
Public operatorStatic memberInequality
Implements the operator !=.
Public operatorStatic memberMultiply(ConversionRatio, ConversionRatio)
Implements the operator *. This multiplies the multipliers and the divisors.
Public operatorStatic memberMultiply(ConversionRatio, Decimal)
Implements the operator *. This multiplies the multipliers and the divisors.
Top
See Also