protected virtual int GetHash(Object Key);
Exception: This method will give NullReferenceException if the key is null.
Below programs illustrate the use of above-discussed method:
1002 : Deshmuk Narayan 1002 : 985757554 1001 : Parek Shetty 1001 : -1708895167 1003 : Ratan Kaalikaran 1003 : -1892225314
- Getting the hash code of the ValueTuple in C#
- Getting the Hash Code of the Given Index in C#
- Getting the Hash Code of the Specified Range in C#
- What is HMAC(Hash based Message Authentication Code)?
- C# | Check if a Hashtable is equal to another Hashtable
- C# | Get or Set the value associated with specified key in Hashtable
- C# Hashtable with Examples
- C# | Hashtable Class
- C# | Check whether a Hashtable contains a specific key or not
- C# | Check if Hashtable is read-only
- Difference between Hashtable and Dictionary in C#
- C# | Get an enumerator that iterates through the Hashtable
- C# | Gets an ICollection containing the keys in the Hashtable
- C# | Remove the element with the specified key from the Hashtable
- C# | Remove all elements from the Hashtable
- C# | Gets an ICollection containing the values in the Hashtable
- C# | Check if the Hashtable contains a specific Value
- C# | Adding an element into the Hashtable
- C# | Check if the Hashtable contains a specific Key
- How to create a shallow copy of Hashtable in C#
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. 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.