I had a list of strings.
I wanted to delete one in it as follows:
settings.RecentSearches.Keys.Remove(itemToAdd.Key);
settings.RecentSearches.Keys.Add(itemToAdd.Key);
Error:
Mutating a key collection derived from a dictionary is not allowed.
I wanted to add and delete values in it.
What can i do?