Wednesday, October 5, 2011

does a key exist in a Dictionary or HashTable?

Check to see if a key exists in a Dictionary or, in this case, a HashTable:

if(myDictionary.ContainsKey("whatever")) {

No comments:

Post a Comment