I need to add key/object pairs to a dictionary, but I of course need to first check if the key already exists otherwise I get a \"key already exists in dictionary
What's wrong with...
dict[key] = view;
It'll automatically add the key if it's non-existent.