I'd like to be able to specify a default value to return if the key I specify can't be found in the dictionary.
e.g.
int default = 5;
string key = "MyKey";
int foo = myDictionary.GetValue(key, default);
if key
is in myDictionary
foo
should hold the value from the dictionary, otherwise it will hold 5
.