Click or drag to resize
IListExtensionMethods.AddRange<T> 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.0.0.0 (1.0.10.1127)
Syntax
public static void AddRange<T>(
	this IList<T> container,
	IEnumerable<T> rangeToAdd
)

Parameters

container
Type: System.Collections.Generic.IList<T>
The container.
rangeToAdd
Type: System.Collections.Generic.IEnumerable<T>
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 IList<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