Implemented Add and AddRange methods

These supplant the static Utilities.Merge() overloads.
This commit is contained in:
thefiddler 2013-11-09 19:22:31 +01:00
parent dff5e1c3a3
commit 417aa67139

View file

@ -325,6 +325,22 @@ namespace Bind.Structures
}
}
public void AddRange(IEnumerable<Delegate> delegates)
{
foreach (var d in delegates)
{
Add(d);
}
}
public void AddRange(DelegateCollection delegates)
{
foreach (var d in delegates.Values.SelectMany(v => v))
{
Add(d);
}
}
#region IDictionary Members
public void Add(string key, List<Delegate> value)