Прочетете на английски Редактиране

Споделяне чрез


ValueTuple.Equals Method

Definition

Returns a value that indicates whether the current ValueTuple instance is equal to the specified object.

Overloads

Equals(ValueTuple)

Determines whether two ValueTuple instances are equal. This method always returns true.

Equals(Object)

Returns a value that indicates whether the current ValueTuple instance is equal to a specified object.

Equals(ValueTuple)

Source:
ValueTuple.cs
Source:
ValueTuple.cs
Source:
ValueTuple.cs

Determines whether two ValueTuple instances are equal. This method always returns true.

C#
public bool Equals(ValueTuple other);

Parameters

other
ValueTuple

The value tuple to compare with the current instance.

Returns

This method always returns true.

Implements

Applies to

.NET 10 и други версии
Продукт Версии
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

Equals(Object)

Source:
ValueTuple.cs
Source:
ValueTuple.cs
Source:
ValueTuple.cs

Returns a value that indicates whether the current ValueTuple instance is equal to a specified object.

C#
public override bool Equals(object? obj);
C#
public override bool Equals(object obj);

Parameters

obj
Object

The object to compare to the current instance.

Returns

true if obj is a ValueTuple instance; otherwise, false.

Applies to

.NET 10 и други версии
Продукт Версии
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1