TimeZoneInfo::Equals Method (Object^)
.NET Framework (current version)
Determines whether the current TimeZoneInfo object and another object are equal.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- obj
-
Type:
System::Object^
A second object to compare with the current object.
Return Value
Type: System::Booleantrue if obj is a TimeZoneInfo object that is equal to the current instance; otherwise, false.
This method converts or casts obj to a TimeZoneInfo object and compares it with the current instance. The test for equality is based on a comparison of values. The current TimeZoneInfo instance and obj are considered to be equal under the following conditions:
The run-time type of obj is TimeZoneInfo.
The two objects have the same Id property value.
The two objects have the same adjustment rules.
If obj is null, this method returns false.
.NET Framework
Available since 4.5
Available since 4.5
Show: