feat: Dictionary AddRange extensions

This commit is contained in:
2026-03-11 13:21:35 +03:00
parent 821144a691
commit bf7dc5a3d4
@@ -28,5 +28,11 @@ public static class EnumerableExtensions
public static bool All(this IEnumerable<bool> values) => values.All(v => v);
public static bool Any(this IEnumerable<bool> values) => values.Any(v => v);
public static void AddRange<TValue, TKey>(this IDictionary<TValue, TKey> values, IEnumerable<KeyValuePair<TValue, TKey>> collection)
{
foreach (var kv in collection)
values.Add(kv);
}
}