Find a Key
The ContainsKey method checks if a key already exists in the dictionary. The following code snippet checks if a key already exits and if not, adds it.