diff --git a/ICD.Common.Utils/Extensions/DictionaryExtensions.cs b/ICD.Common.Utils/Extensions/DictionaryExtensions.cs index 1869f54..18a3d0d 100644 --- a/ICD.Common.Utils/Extensions/DictionaryExtensions.cs +++ b/ICD.Common.Utils/Extensions/DictionaryExtensions.cs @@ -239,6 +239,26 @@ namespace ICD.Common.Utils.Extensions return change; } + /// + /// Adds the sequence of items to the dictionary. + /// + /// + /// + /// + /// + [PublicAPI] + public static void AddRange(this IDictionary extends, IEnumerable> items) + { + if (extends == null) + throw new ArgumentNullException("extends"); + + if (items == null) + throw new ArgumentNullException("items"); + + foreach (KeyValuePair item in items) + extends.Add(item); + } + /// /// Adds the sequence of items to the dictionary. ///