ValueTuple<T1>.Equals Methode
Definition
Gibt einen Wert zurück, der angibt, ob die aktuelle ValueTuple<T1>-Instanz gleich einem angegebenen Objekt ist.Returns a value that indicates whether the current ValueTuple<T1> instance is equal to a specified object.
Überlädt
Equals(Object) |
Gibt einen Wert zurück, der angibt, ob die aktuelle ValueTuple<T1>-Instanz gleich einem angegebenen Objekt ist.Returns a value that indicates whether the current ValueTuple<T1> instance is equal to a specified object. |
Equals(ValueTuple<T1>) |
Gibt einen Wert zurück, der angibt, ob die aktuelle ValueTuple<T1>-Instanz gleich einer angegebenen ValueTuple<T1>-Instanz ist.Returns a value that indicates whether the current ValueTuple<T1> instance is equal to a specified ValueTuple<T1> instance. |
Equals(Object)
Gibt einen Wert zurück, der angibt, ob die aktuelle ValueTuple<T1>-Instanz gleich einem angegebenen Objekt ist.Returns a value that indicates whether the current ValueTuple<T1> instance is equal to a specified object.
public:
override bool Equals(System::Object ^ obj);
public override bool Equals (object obj);
override this.Equals : obj -> bool
Public Overrides Function Equals (obj As Object) As Boolean
Parameter
- obj
- Object
Das Objekt, das mit dieser Instanz verglichen werden soll.The object to compare with this instance.
Gibt zurück
true
, wenn die aktuelle Instanz gleich dem angegebenen Objekt ist, andernfalls false
.true
if the current instance is equal to the specified object; otherwise, false
.
Hinweise
Das- obj
Argument wird unter folgenden Bedingungen als gleich der aktuellen Instanz betrachtet:The obj
argument is considered to be equal to the current instance under the following conditions:
Dabei handelt es sich um einen ValueTuple<T1> Werttyp.It is a ValueTuple<T1> value type.
Die IT-Komponente ist von denselben Typen wie die aktuelle Instanz.It component is of the same types as that of the current instance.
Die Komponente entspricht der der aktuellen Instanz.Its component is equal to that of the current instance. Gleichheit wird durch den Standard Gleichheits Vergleich für die Komponente bestimmt.Equality is determined by the default equality comparer for the component.
Gilt für:
Equals(ValueTuple<T1>)
Gibt einen Wert zurück, der angibt, ob die aktuelle ValueTuple<T1>-Instanz gleich einer angegebenen ValueTuple<T1>-Instanz ist.Returns a value that indicates whether the current ValueTuple<T1> instance is equal to a specified ValueTuple<T1> instance.
public:
virtual bool Equals(ValueTuple<T1> other);
public bool Equals ((T1) other);
override this.Equals : ValueTuple<'T1> -> bool
Public Function Equals (other As ValueTuple(Of T1)) As Boolean
Parameter
- other
- ValueTuple<T1>
Das Werttupel, das mit dieser Instanz verglichen werden soll.The value tuple to compare with this instance.
Gibt zurück
true
, wenn die aktuelle Instanz gleich dem angegebenen Tupel ist, andernfalls false
.true
if the current instance is equal to the specified tuple; otherwise, false
.
Implementiert
Hinweise
Das- other
Argument wird unter folgenden Bedingungen als gleich der aktuellen Instanz betrachtet:The other
argument is considered to be equal to the current instance under the following conditions:
Die Komponenten sind von denselben Typen wie die der aktuellen Instanz.Its components are of the same types as those of the current instance.
Die zugehörigen Komponenten entsprechen denen der aktuellen Instanz.Its components are equal to those of the current instance. Gleichheit wird durch den Standard Gleichheits Vergleich für jede Komponente bestimmt.Equality is determined by the default equality comparer for each component.