c# check to see if dictionary key exists

C#
bool keyExists = dict.ContainsKey(key);
Source

Also in C#: