using System.Collections.Generic; using System.Linq; namespace IRCStates { public static class Extensions { public static void UpdateWith(this Dictionary dict, Dictionary other) { if (dict == null || other == null || !other.Any()) return; foreach (var (key, value) in other) dict[key] = value; } } }