websitepanel/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Extensions/DictionaryExtensions.cs
2014-12-03 11:43:26 +03:00

18 lines
No EOL
549 B
C#

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