I assume that you are using
dictionary.Add(key, value);
If you're happy just replacing the existing key / value pair, just use the index:
dictionary[key] = value;
If you want to have multiple values ββfor the same key, see other answers :)
source share