Click or drag to resize

Temperature Structure

Represents an amount of heat in the environment.
Inheritance Hierarchy
SystemObject
  SystemValueType
    InnerDrive.QuantitativeTemperature

Namespace: InnerDrive.Quantitative
Assembly: InnerDrive.Quantitative (in InnerDrive.Quantitative.dll) Version: 5.0.8475.0
Syntax
C#
[SerializableAttribute]
[JsonObjectAttribute(ItemTypeNameHandling = TypeNameHandling.Auto)]
public struct Temperature : IAdditionOperators<Temperature, Temperature, Temperature>, 
	IAdditionOperators<Temperature, double, Temperature>, IAdditionOperators<Temperature, int, Temperature>, 
	ICloneable, IComparable, IComparable<Temperature>, IComparisonOperators<Temperature, Temperature, bool>, 
	IEqualityOperators<Temperature, Temperature, bool>, IComparisonOperators<Temperature, double, bool>, 
	IEqualityOperators<Temperature, double, bool>, IConvertible<Temperature>, 
	IDivisionOperators<Temperature, double, Temperature>, IDivisionOperators<Temperature, int, Temperature>, 
	IEquatable<Temperature>, IMeasurable, IFormattable, IMinMaxValue<Temperature>, 
	IMultiplyOperators<Temperature, double, Temperature>, IMultiplyOperators<Temperature, int, Temperature>, 
	ISubtractionOperators<Temperature, Temperature, Temperature>, ISubtractionOperators<Temperature, double, Temperature>, 
	ISubtractionOperators<Temperature, int, Temperature>, IUnaryNegationOperators<Temperature, Temperature>, 
	ISpanFormattable

The Temperature type exposes the following members.

Constructors
 NameDescription
Public methodTemperature(Double) Creates a new instance of Temperature with a particular value.
Public methodTemperature(Double, Unit) Creates a new instance of Temperature with a particular value and Unit.
Public methodTemperature(Double, Type) Creates a new instance of Temperature with a particular value and Unit whose Type is specified
Public methodTemperature(Double, Unit, MetricExponent)Initializes a new instance of the Temperature class
Top
Properties
 NameDescription
Public propertyStatic memberAbsoluteZero Gets a Temperature object equal to absolute zero, or 0 K.
Public propertyAccuracy Represents the degree confidence that the quantity represented equals the quantity actually measured, controlling how the CompareTo<T> method behaves.
Public propertyDefaultUnit Gets the Type of the Unit in which the IMeasurableclass is denominated.
Public propertyStatic memberMaxValueGets the maximum value of the current type.
Public propertyStatic memberMinValueGets the minimum value of the current type.
Public propertyName Gets the name of the type of measurement.
Public propertyPrecision Represents the range within which the measurement is correct, controlling how the ToString() method behaves.
Public propertyUnit Gets the Unit in which the IMeasurable object is denominated.
Public propertyValue Gets or sets the quantity of units represented by the IMeasurable object.
Top
Methods
 NameDescription
Public methodStatic memberAdd(Temperature, Temperature) Adds two instances of Temperature together.
Public methodStatic memberAdd(Temperature, Double) Adds an instance of Temperature to an instance of Double.
Public methodCloneCreates a new object that is a copy of the current instance.
Public methodCompareToCompares 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.
Public methodConvertTo(Type) Converts the instance into a new IMeasurable instance denominated in the measurement units provided.
Public methodConvertTo(Unit) Converts the instance into a new instance of the same type denominated in the measurement units provided.
Public methodStatic memberDivide Divides an instance of Temperature by a double-precision value.
Public methodEquals(Object)Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object))
Public methodEquals(Temperature)Indicates whether the current object is equal to another object of the same type.
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodStatic memberFromCelsius Returns a Temperature structure equal to the Celsius value provided
Public methodStatic memberFromFahrenheit Returns a Temperature structure equal to the Fahrenheit value provided
Public methodGetHashCodeReturns the hash code for this instance.
(Overrides ValueTypeGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodStatic memberMultiply Multiplies an instance of Temperature by a double-precision value.
Public methodStatic memberNegate Negates the value of the specified Temperature operand.
Public methodStatic memberSubtract(Temperature, Temperature) Subtracts one instance of Temperature from another.
Public methodStatic memberSubtract(Temperature, Double) Subtracts an instance of Double from an instance of Temperature.
Public methodToJson Returns a JSON representation of this Temperature
Public methodToStringReturns the fully qualified type name of this instance.
(Overrides ValueTypeToString)
Public methodToString(MetricExponent) Converts the numeric value of this instance to its equivalent String representation, using the metric exponent provided if appropriate to the Unit type.
Public methodToString(String) Converts the numeric value of this instance to its equivalent String representation, using the specified format.
Public methodToString(String, MetricExponent) Converts the numeric value of this instance to its equivalent String representation, using the specified format and metric exponent.
Public methodToString(String, IFormatProvider)Formats the value of the current instance using the specified format.
Public methodToString(String, MetricExponent, IFormatProvider) Formats the value of the current instance using the specified format.
Public methodTryFormatTries to format the value of the current instance into the provided span of characters.
Top
Operators
 NameDescription
Public operatorStatic memberAddition(Temperature, Temperature)Adds two values together to compute their sum.
Public operatorStatic memberAddition(Temperature, Double)Adds two values together to compute their sum.
Public operatorStatic memberAddition(Temperature, Int32)Adds two values together to compute their sum.
Public operatorStatic memberDivision(Temperature, Double)Divides one value by another to compute their quotient.
Public operatorStatic memberDivision(Temperature, Int32)Divides one value by another to compute their quotient.
Public operatorStatic memberEquality(Double, Temperature) Compares an instance of Temperature with an instance of Double for equality.
Public operatorStatic memberEquality(Temperature, Temperature)Compares two values to determine equality.
Public operatorStatic memberEquality(Temperature, Double)Compares two values to determine equality.
Public operatorStatic memberGreaterThan(Double, Temperature) Compares an instance of Temperature to an instance of Double for different values.
Public operatorStatic memberGreaterThan(Temperature, Temperature)Compares two values to determine which is greater.
Public operatorStatic memberGreaterThan(Temperature, Double)Compares two values to determine which is greater.
Public operatorStatic memberGreaterThanOrEqual(Double, Temperature) Compares an instance of Temperature to an instance of Double for different values.
Public operatorStatic memberGreaterThanOrEqual(Temperature, Temperature)Compares two values to determine which is greater or equal.
Public operatorStatic memberGreaterThanOrEqual(Temperature, Double)Compares two values to determine which is greater or equal.
Public operatorStatic member(Double to Temperature) Creates a new Temperature object from a Double value.
Public operatorStatic member(Temperature to Double) Creates a new Double value from a given Temperature object.
Public operatorStatic memberInequality(Double, Temperature) Compares an instance of Temperature with an instance of Double for inequality.
Public operatorStatic memberInequality(Temperature, Temperature)Compares two values to determine inequality.
Public operatorStatic memberInequality(Temperature, Double)Compares two values to determine inequality.
Public operatorStatic memberLessThan(Double, Temperature) Compares an instance of Temperature to an instance of Double for different values.
Public operatorStatic memberLessThan(Temperature, Temperature)Compares two values to determine which is less.
Public operatorStatic memberLessThan(Temperature, Double)Compares two values to determine which is less.
Public operatorStatic memberLessThanOrEqual(Double, Temperature) Compares an instance of Temperature to an instance of Double for different values.
Public operatorStatic memberLessThanOrEqual(Temperature, Temperature)Compares two values to determine which is less or equal.
Public operatorStatic memberLessThanOrEqual(Temperature, Double)Compares two values to determine which is less or equal.
Public operatorStatic memberMultiply(Temperature, Double)Multiplies two values together to compute their product.
Public operatorStatic memberMultiply(Temperature, Int32)Multiplies two values together to compute their product.
Public operatorStatic memberSubtraction(Temperature, Temperature)Subtracts two values to compute their difference.
Public operatorStatic memberSubtraction(Temperature, Double)Subtracts two values to compute their difference.
Public operatorStatic memberSubtraction(Temperature, Int32)Subtracts two values to compute their difference.
Public operatorStatic memberUnaryNegation(Temperature)Computes the unary negation of a value.
Top
Fields
 NameDescription
Public fieldStatic memberEpsilon Represents the smallest value of Accuracy that will successfully evaluate equality without boundary condition errors.
Public fieldStatic memberMaxPrecision Represents the maximum precision with which a value can be displayed.
Public fieldStatic memberMinPrecision Represents the minimum precision with which a value can be displayed.
Top
Explicit Interface Implementations
 NameDescription
Explicit interface implementationPrivate methodIComparableCompareToCompares 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.
Top
Remarks
Since version 3.2, this class supports JSON deserialization using Newtonsoft.Json. Here is the minimal JSON document you need to deserialize correctly: { "Unit": { "$type": "InnerDrive.Quantitative.Units.Celsius, InnerDrive.Quantitative" }, "Value": 20.0 }
See Also