Click or drag to resize

TemperatureEquals(Temperature) Method

Two Temperature instances can only be equal if they have the same units and temperature value.

Namespace: DegreeDays.Api.Data
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public bool Equals(
	Temperature other
)

Parameters

other  Temperature
The instance to compare with this instance.

Return Value

Boolean
true if other is equal to this instance; false otherwise.

Implements

IEquatableTEquals(T)
Remarks

Value comparisons are made after any rounding done by the constructor. See these remarks for more on rounding.

A Celsius temperature and a Fahrenheit temperature can never be equal: this method does not do any conversion between units.

See Also