Click or drag to resize

TemperatureEquals(Object) 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 override bool Equals(
	Object obj
)

Parameters

obj  Object
The object to compare with this instance.

Return Value

Boolean
true if obj is equal to this instance; false otherwise.
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