Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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")
Source by www.guru99.com #
 
PREVIOUS NEXT
Tagged: #hashtable #check #key #exists
ADD COMMENT
Topic
Name
7+2 =