diff --git a/Source/Bind/Structures/Delegate.cs b/Source/Bind/Structures/Delegate.cs index 35e82c4f..0961d310 100644 --- a/Source/Bind/Structures/Delegate.cs +++ b/Source/Bind/Structures/Delegate.cs @@ -325,6 +325,22 @@ namespace Bind.Structures } } + public void AddRange(IEnumerable 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 value)