ConversionRatio Class |
Namespace: Aloe.EnterpriseOne.Model.Core.Metrics
The ConversionRatio type exposes the following members.
| Name | Description | |
|---|---|---|
| ConversionRatio |
Initializes a new instance of the ConversionRatio struct.
|
| Name | Description | |
|---|---|---|
| Divisor |
Gets the divisor.
| |
| Multiplier |
Gets the multiplier.
| |
| Zero |
Gets the zero ConversionRatio, e.g. (0/1).
|
| Name | Description | |
|---|---|---|
| CombineThroughBase |
Combines two ConversionRatio instances, which are conversion ratios against a single base unit of measure.
| |
| Convert |
Converts the specified value by applying the conversion ratio.
| |
| ConvertBack |
Converts the specified value back to the original value by applying the ratio backwards.
| |
| Divide |
Divides the specified ratio by the specified divisor.
| |
| Equals(Object) |
Determines whether the specified Object, is equal to this instance.
(Overrides ValueTypeEquals(Object).) | |
| Equals(ConversionRatio) |
Indicates whether the current object is equal to another object of the same type.
| |
| GetHashCode |
Returns a hash code for this instance.
(Overrides ValueTypeGetHashCode.) | |
| Multiply(ConversionRatio, ConversionRatio) |
Multiplies the specified ratios multipliers and the divisors.
| |
| Multiply(ConversionRatio, Decimal) |
Multiplies the specified ratios multipliers and the divisors.
| |
| ToString |
Returns a String that represents this instance.
(Overrides ValueTypeToString.) |
| Name | Description | |
|---|---|---|
| Division |
Implements the operator *. This multiplies the multipliers and the divisors.
| |
| Equality |
Implements the operator ==.
| |
| Inequality |
Implements the operator !=.
| |
| Multiply(ConversionRatio, ConversionRatio) |
Implements the operator *. This multiplies the multipliers and the divisors.
| |
| Multiply(ConversionRatio, Decimal) |
Implements the operator *. This multiplies the multipliers and the divisors.
|