Mass Methods |
The Mass type exposes the following members.
Name | Description | |
---|---|---|
Add(Mass, Mass) | Adds two instances of Mass together. | |
Add(Mass, Double) | Adds an instance of Mass to an instance of Double. | |
Clone | Creates a new object that is a copy of the current instance. | |
CompareTo | Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. | |
ConvertTo(Type) | Converts the instance into a new IMeasurable instance denominated in the measurement units provided. | |
ConvertTo(Unit) | Converts the instance into a new instance of the same type denominated in the measurement units provided. | |
Divide | Divides an instance of Mass by a double-precision value. | |
Equals(Mass) | Indicates whether the current object is equal to another object of the same type. | |
Equals(Object) |
Determines whether the specified Object is equal to the
current Mass.
(Overrides ValueTypeEquals(Object)) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
GetHashCode |
Serves as a hash function for a particular type,
suitable for use in hashing algorithms and data structures
like a hash table.
(Overrides ValueTypeGetHashCode) | |
GetType | Gets the Type of the current instance. (Inherited from Object) | |
IsInfinity | Returns a value indicating whether the specified number evaluates to negative or positive infinity. | |
IsNaN | Returns a value indicating whether the specified number evaluates to a value that is not a number (NaN). | |
IsNegativeInfinity | Returns a value indicating whether the specified number evaluates to negative infinity (NegativeInfinity). | |
IsPositiveInfinity | Returns a value indicating whether the specified number evaluates to positive infinity (PositiveInfinity). | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
Multiply | Multiplies an instance of Mass by a double-precision value. | |
Negate | Negates the value of the specified Mass operand. | |
Subtract(Mass, Mass) | Subtracts one instance of Mass from another. | |
Subtract(Mass, Double) | Subtracts an instance of Double from an instance of Mass. | |
ToString |
Gets the string representation of this Mass.
(Overrides ValueTypeToString) | |
ToString(MetricExponent) | Converts the numeric value of this instance to its equivalent String representation, using the metric exponent provided if appropriate to the Unit type. | |
ToString(String) | Converts the numeric value of this instance to its equivalent String representation, using the specified format. | |
ToString(String, MetricExponent) | Converts the numeric value of this instance to its equivalent String representation, using the specified format and metric exponent. | |
ToString(String, IFormatProvider) | Formats the value of the current instance using the specified format. | |
ToString(String, MetricExponent, IFormatProvider) | Formats the value of the current instance using the specified format. | |
TryFormat | Tries to format the value of the current instance into the provided span of characters. |
Name | Description | |
---|---|---|
IComparableCompareTo | Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. |