I have a Dictionary set up like so:
private Dictionary<string, List<string>> Directory = new Dictionary<string, List<string>>();
I am needing to iterate over every Key in the Dictionary and remove all occurrences of a string within each of the lists.
I believe I can do so with a series of for/for-each loops, possibly by creating a new list for each without the string that I am trying to remove but I feel this may become inefficient when the Dictionary grows in size.
Are there any methods that can make this more efficient?