System.Tuple<T1,T2>.Equals Method

Returns a value that indicates whether the current Tuple`2 object is equal to a specified object.

Syntax

public override bool Equals (object obj)

Parameters

obj
The object to compare with this instance.

Returns

true if the current instance is equal to the specified object; otherwise, false.

Remarks

The obj parameter is considered to be equal to the current instance under the following conditions:

  • It is a Tuple`2 object.

  • Its two components are of the same types as the current instance.

  • Its two components are equal to those of the current instance. Equality is determined by the default object equality comparer for each component.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 4.0.0.0