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.DataAssembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax public override bool Equals(
Object obj
)
Public Overrides Function Equals (
obj As Object
) As Boolean
Parameters
- obj Object
- The object to compare with this instance.
Return Value
Booleantrue 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