| CollectionExtensionsAddRangeT Method |
Adds a range of elements to the collection.
Namespace:
Ookii.Jumbo
Assembly:
Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 2.0.0
Syntax public static void AddRange<T>(
this Collection<T> target,
IEnumerable<T> collection
)
<ExtensionAttribute>
Public Shared Sub AddRange(Of T) (
target As Collection(Of T),
collection As IEnumerable(Of T)
)
public:
[ExtensionAttribute]
generic<typename T>
static void AddRange(
Collection<T>^ target,
IEnumerable<T>^ collection
)
[<ExtensionAttribute>]
static member AddRange :
target : Collection<'T> *
collection : IEnumerable<'T> -> unit
Parameters
- target
- Type: System.Collections.ObjectModelCollectionT
The collection to add the elements to. - collection
- Type: System.Collections.GenericIEnumerableT
The collection containing the elements to add.
Type Parameters
- T
- The type of the elements.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
CollectionT. 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).
See Also