Click or drag to resize

CollectionExtensions.AddRange<T> 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.ObjectModel.Collection<T>
The collection to add the elements to.
collection
Type: System.Collections.Generic.IEnumerable<T>
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 Collection<T>. 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