diff --git a/ICD.Common.Utils/Collections/IcdOrderedDictionary.cs b/ICD.Common.Utils/Collections/IcdOrderedDictionary.cs index 586ccd6..3699b18 100644 --- a/ICD.Common.Utils/Collections/IcdOrderedDictionary.cs +++ b/ICD.Common.Utils/Collections/IcdOrderedDictionary.cs @@ -80,6 +80,20 @@ namespace ICD.Common.Utils.Collections m_Dictionary = new Dictionary(equalityComparer); } + /// + /// Constructor. + /// + /// + public IcdOrderedDictionary(IEnumerable> dictionary) + : this() + { + if (dictionary == null) + throw new ArgumentNullException("dictionary"); + + foreach (KeyValuePair kvp in dictionary) + Add(kvp.Key, kvp.Value); + } + #region Methods public IEnumerator> GetEnumerator()