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
public static IDictionary AddRange(this IDictionary one, IDictionary two) { foreach (var kvp in two) { if (one.ContainsKey(kvp.Key)) one[kvp.Key] = two[kvp.Key]; else one.Add(kvp.Key, kvp.Value); } return one; }