Click or drag to resize
IListExtensionMethodsAddRangeT Method
Adds the range specified to an IList(Of T) typed container.

Namespace:  SD.Tools.BCLExtensions.CollectionsRelated
Assembly:  SD.Tools.BCLExtensions (in SD.Tools.BCLExtensions.dll) Version: 1.1.1
Syntax
public static void AddRange<T>(
	this IList<T> container,
	IEnumerable<T> rangeToAdd
)

Parameters

container
Type: System.Collections.GenericIListT
The container.
rangeToAdd
Type: System.Collections.GenericIEnumerableT
The range to add.

Type Parameters

T
type of the element in the list

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IListT. 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