check if a hashtable contains a key code example
Example 1: javascript hashtable contains key
if (obj.hasOwnProperty("key1")) {
...
}
Example 2: 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")