I have a dictionary called d as mentioned.
Dictionary<string, int> d = new Dictionary<string, int>();
d["dog"] = 1;
d["cat"] = 5;
Now if I want to remove the key "cat" I cant use the Remove() method as it only removes the corresponding value associated and not the key itself. So is there a way to remove a key?