![]() |
VOOZH | about |
A tuple is a data structure which gives you the easiest way to represent a data set. You can also check if the given tuple object is equal to the specified object or not using the Equals Method. This method will return true if the given tuple object is equal to the specified object, otherwise, return false.
Syntax:
public override bool Equals (object obj);
Here, obj is the object to compare with this instance.
Return Type: The return type of this method is Boolean. Means it will return true if the tuple object is equal to the given object. Otherwise, return false.
Important Points: This obj parameter is considered to be equal when it meets the following conditions:
Below programs illustrate the use of the above-discussed method:
Example 1:
False True False
Example 2:
False False True False False