Temperature(Double, Unit) Constructor

Creates a new instance of Temperature with a particular value and Unit.

Definition

Namespace: InnerDrive.Quantitative
Assembly: InnerDrive.Quantitative (in InnerDrive.Quantitative.dll) Version: 5.2.9017.0
C#
[JsonConstructorAttribute]
public Temperature(
	double value,
	Unit unit
)

Parameters

value  Double
The value of the Temperature to use.
unit  Unit
The Unit to use.

Exceptions

IncompatibleUnitExceptionThrown if Temperature is not the type that the Unit applies to.
ArgumentOutOfRangeExceptionvalue represents a temperature below absolute zero

See Also