79270771

Date: 2024-12-11 07:11:51
Score: 0.5
Natty:
Report link
use System.Linq;

Dict1.Concat(Dict2.Where(d => !Dict1.ContainsKey(d.Key)).ToDictionary(d => d.Key, d => d.Value);

this will make Dict1 contain all dict2 entries. on duplicatekey the Dict2 entry will overwrite the Dict1 entry.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ton