Two Period objects are equal if it can be ascertained that
they will always represent the same period in time as each other when
compared at the same time and in the same context.
Namespace: DegreeDays.Api.DataAssembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax public override sealed bool Equals(
Object obj
)
Public Overrides NotOverridable Function Equals (
obj As Object
) As Boolean
Parameters
- obj Object
- The object to compare with this instance.
Return Value
Booleantrue if
obj is a
Period that
will always represent the same period in time as this
Period when compared at the same time and in the
same context, or
false otherwise.
Remarks
If this method returns false, it is still possible that the
two Period objects could represent the same period
in time if compared at a certain time and in a certain context. For
example, it is possible for a LatestValuesPeriod to translate to
the same date range as a DayRangePeriod, but that is dependent on
the time of comparison and the time at the location for which the data is
being specified. This equals method does not attempt to look
for transient equality like that - if the "equality" is dependent on time
or context this method will always return false.
See Also