hashtable check if key exist code example
Example: c# use hashtable check if key exists
// Create hashtable
Hashtable ht = new Hashtable();
// Add a key value pair
ht.Add("001",".Net");
// Check to see if key exists
ht.ContainsKey("001")
// Create hashtable
Hashtable ht = new Hashtable();
// Add a key value pair
ht.Add("001",".Net");
// Check to see if key exists
ht.ContainsKey("001")