forked from amkovkov/GranuSightSoftware2
feat: Dictionary AddRange extensions
This commit is contained in:
@@ -28,5 +28,11 @@ public static class EnumerableExtensions
|
|||||||
|
|
||||||
public static bool All(this IEnumerable<bool> values) => values.All(v => v);
|
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 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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user