Implemented Add and AddRange methods
These supplant the static Utilities.Merge() overloads.
This commit is contained in:
parent
dff5e1c3a3
commit
417aa67139
1 changed files with 16 additions and 0 deletions
|
@ -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
|
#region IDictionary Members
|
||||||
|
|
||||||
public void Add(string key, List<Delegate> value)
|
public void Add(string key, List<Delegate> value)
|
||||||
|
|
Loading…
Reference in a new issue