Click or drag to resize

LocationEquals Method

Two Location objects are equal if it can be ascertained that they both represent the exact same weather station(s) or geographic location, and that two requests for data, one with each Location and identical in every other respect, would return identical data.

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 it is clear that obj is a Location that represents the exact same weather station(s) or geographic location as this Location object, or false if it is clear that it isn't or if it's impossible to tell without putting in two requests for data, one with each Location and identical in every other respect, and comparing for equality the station IDs that come back with each response.
Remarks

If this method returns false, it does not necessarily mean that the two Location objects do not represent the same weather station(s) or geographic location. For example, it is impossible to determine if a LongLatLocation maps to the same weather station(s) as a PostalCodeLocation without putting in two requests for data, one with each Location and identical in every other respect, and comparing for equality the station IDs that come back with each response.

See Also