| CollectionHelperAddRangeT Method |
Namespace: DigitalRune.CollectionsAssembly: DigitalRune (in DigitalRune.dll) Version: 1.20.0.0 (1.20.1.14552)
Syntax public static void AddRange<T>(
this ICollection<T> collection,
IEnumerable<T> items
)
<ExtensionAttribute>
Public Shared Sub AddRange(Of T) (
collection As ICollection(Of T),
items As IEnumerable(Of T)
)
public:
[ExtensionAttribute]
generic<typename T>
static void AddRange(
ICollection<T>^ collection,
IEnumerable<T>^ items
)
[<ExtensionAttribute>]
static member AddRange :
collection : ICollection<'T> *
items : IEnumerable<'T> -> unit
Parameters
- collection
- Type: System.Collections.GenericICollectionT
The collection to which the items should be added. - items
- Type: System.Collections.GenericIEnumerableT
TThe items to be added.
Type Parameters
- T
- The type of items in the collection.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
ICollectionT. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exceptions See Also