Click or drag to resize

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
)

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