KGy SOFT

ListExtensionsInsertRangeT Method

KGy SOFT Core Libraries Help

Namespace:  KGySoft.CoreLibraries
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 6.0.0
Syntax

public static void InsertRange<T>(
	this IList<T> target,
	int index,
	IEnumerable<T> collection
)

Parameters

target
Type: System.Collections.GenericIListT
The target collection.
index
Type: SystemInt32
The zero-based index at which collection items should be inserted.
collection
Type: System.Collections.GenericIEnumerableT
The collection to insert into the target.

Type Parameters

T
The type of the elements in the collections.

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).
Exceptions

ExceptionCondition
ArgumentNullExceptiontarget or collection is .
ArgumentOutOfRangeExceptionindex is not a valid index in the CircularListT.
Remarks

See Also

Reference