Skip to main content

QuantityValue<T> Operators

Contains the unit of measurement and its value.
Name Description
Addition(QuantityValue<T>, QuantityValue<T>) static Adds two QuantityValue<T> objects and returns the result as the QuantityValue<T> object.
Addition(QuantityValue<T>, Double) static Adds a Double value to the QuantityValue<T> object and returns the result as the QuantityValue<T> object.
Decrement(QuantityValue<T>) static Decrements a QuantityValue<T> object by one and returns the result as the QuantityValue<T> object.
Division(QuantityValue<T>, Double) static Divides two QuantityValue<T> objects.
Implicit(QuantityValue<T> to Double) static Defines an implicit conversion of a QuantityValue<T> object to a Double.
Increment(QuantityValue<T>) static Increments the QuantityValue<T> value by 1.
Multiply(QuantityValue<T>, Double) static Multiplies the QuantityValue<T> values by the Double value.
Subtraction(QuantityValue<T>, QuantityValue<T>) static Subtracts the QuantityValue<T> value from another QuantityValue<T> value.
Subtraction(QuantityValue<T>, Double) static Subtracts the Double value from the QuantityValue<T> value.
See Also