Читати англійською Редагувати

Поділитися через


TimeZoneInfo.TransitionTime.Inequality Operator

Definition

Determines whether two specified TimeZoneInfo.TransitionTime objects are not 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 any different member values; otherwise, false.

Remarks

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

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

Applies to

Продукт Версії
.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