using System.Collections.Generic;
using System.Linq;
namespace IRCStates
{
public static class Extensions
{
///
/// Update the dictionary with 's keys and values
///
///
///
///
///
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;
}
}
}