I'm trying to remove a key from my dictionary if the key is a certain key.
parameterList is a dictionary<string,string>
parameterList.Remove(parameterList.Where(k => String.Compare(k.Key, "someKeyName") == 0));
This should be enough:
parameterList.Remove(key);