TimeZoneInfo.TransitionTime.Equality Operator

Definition

Determines whether two specified TimeZoneInfo.TransitionTime objects are equal.

C#
public static bool operator ==(TimeZoneInfo.TransitionTime t1, TimeZoneInfo.TransitionTime t2);
C#
public static bool operator ==(TimeZoneInfo.TransitionTime left, TimeZoneInfo.TransitionTime right);

Parameters

t1left
TimeZoneInfo.TransitionTime

The first object to compare.

t2right
TimeZoneInfo.TransitionTime

The second object to compare.

Returns

true if t1 and t2 have identical values; otherwise, false.

Remarks

Two TimeZoneInfo.TransitionTime objects are equal if they have identical values for each of their six properties. Otherwise, they are unequal.

The equivalent method for this operator is TimeZoneInfo.TransitionTime.Equals(TimeZoneInfo+TransitionTime).

Applies to

Produkt Verze
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1