TimeZoneInfo.Equals Method (TimeZoneInfo)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Determines whether the current TimeZoneInfo object and another TimeZoneInfo object are equal.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- other
- Type: System.TimeZoneInfo
A second TimeZoneInfo object to compare with the current TimeZoneInfo object.
Implements
IEquatable<T>.Equals(T)Equality is based on a comparison of values.
If the other parameter is an uninitialized TimeZoneInfo object, this method returns false.
Version Notes
XNA Framework
When this method is used in the XNA Framework, it throws a NotSupportedException exception.The following example uses the Equals(TimeZoneInfo) method to determine whether a TimeZoneInfo variable is identical to the local time zone returned by the Local property.