Dictionary 1:
Dictionary<string, IList<PuntoMappa>> PuntiCantieriCMS = new Dictionary<string, IList<PuntoMappa>>();
Dictionary 2:
Dictionary<string, IList<PuntoMappa>> PuntiCantieri = new Dictionary<string, IList<PuntoMappa>>();
I want Union those both; where the key is the same, they must union IList<PuntoMappa>
for each key. Is it possible?
Tried:
PuntiCantieri = PuntiCantieri .Union(PuntiCantieriCMS ).ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
but when 2 keys are similar, it trigger an exception.