Here's a representative line:
x = someDictionary.SingleOrDefault(x => x.Key.Equals(someKey));
For those of you not familiar with C#, all this code does is retrieve a value from a hashmap. It should look like this:
x = someDictionary[someKey];
By using SingleOrDefault, this actually will loop through every entry in the dictionary, searching for the key.