using System; using System.Collections.Generic; namespace WebsitePanel.WebDavPortal.Extensions { public static class DictionaryExtensions { public static void AddRange(this ICollection target, IEnumerable source) { if (target == null) throw new ArgumentNullException("target"); if (source == null) throw new ArgumentNullException("source"); foreach (var element in source) target.Add(element); } } }