Enum.Equals(Object) Method is used to check whether the current instance is equal to a specified object or not. This method overrides ValueType.Equals(Object) to define how enumeration members are evaluated for equality.
public override bool Equals (object obj);
Here, obj is an object to compare with the current instance, or null.
Returns: This method returns true if obj is an enumeration value of the same type and with the same underlying value as current instance otherwise, false.
True False False
- C# | Check if two StringCollection objects are equal
- C# | Check if two StringDictionary objects are equal or not
- C# | Check if two Tuple Objects are equal
- C# | Check if two ListDictionary objects are equal
- C# | Check if two SortedList objects are equal
- Check if two Dictionary objects are equal in C#
- Check if two SortedDictionary objects are equal in C#
- C# | Check if two OrderedDictionary objects are equal
- C# | Check if two HybridDictionary objects are equal
- C# | Check if two ArrayList objects are equal
- C# | Check if two LinkedList<T> objects are equal
- C# | Check if two StringBuilder objects are Equal
- C# | Check if two SortedSet<T> objects are equal
- Check if ValueTuple instances are equal in C#
- C# | Check if two BitArray objects are equal
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.