Possible Duplicate:
Merging dictionaries in C#
using c#4 having 2 dictionaries of type
<string,List<int>>
dictionary1 = [ { "key1" , [ 1, 2, 3]} ,
{ "key2" , [ 1, 2, 4 , 6]}
]
I want to union with dictionary2
dictionary2 = [ { "key0" , [ 1, 2, 3]} ,
{ "key2" , [ 1, 2, 3, 5 , 6]}
]
so to get =>
dictionary1 + dictionary2 = [ { "key1" , [ 1, 2, 3]} ,
{ "key2" , [ 1, 2, 3, 4, 5, 6]},
{ "key0" , [ 1, 2, 3]}
]
how can I do it ?