Skip to main content

QuantityValue<T> Members

Contains the unit of measurement and its value.

Properties

Name Description
Value Gets or sets a numerical value of the quantity expressed in the base measurement unit of the specified type.

Methods

Name Description
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Indicates whether this instance and a specified object are equal. Inherited from ValueType.
GetHashCode() Returns the hash code for this instance. Inherited from ValueType.
GetType() Gets the Type of the current instance. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString() Returns the fully qualified type name of this instance. Inherited from ValueType.

Operators

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