VOOZH about

URL: https://www.geeksforgeeks.org/c-sharp/c-sharp-check-if-a-hashtable-is-equal-to-another-hashtable/

⇱ C# | Check if a Hashtable is equal to another Hashtable - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

C# | Check if a Hashtable is equal to another Hashtable

Last Updated : 1 Feb, 2019
The Hashtable class represents a collection of key-and-value pairs that are organized based on the hash code of the key. The key is used to access the items in the collection. Syntax:
myTable1.Equals(myTable2)
Here, myTable1 and myTable2 are the two Hashtables which is to be checked. Below given are some examples to understand the implementation in a better way: Example 1:
Output:
True
Example 2:
Output:
False
Comment

Explore