What\'s the best way to merge 2 or more dictionaries (Dictionary) in C#? (3.0 features like LINQ are fine).
Dictionary
I\'m thinking of a method signa
I know this is an old question, but since we now have LINQ you can do it in a single line like this
Dictionary merged; Dictionary mergee; mergee.ToList().ForEach(kvp => merged.Add(kvp.Key, kvp.Value));
or
mergee.ToList().ForEach(kvp => merged.Append(kvp));