KGy SOFT

CollectionExtensionsAddRangeT Method

KGy SOFT Core Libraries Help

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

public static void AddRange<T>(
	this ICollection<T> target,
	IEnumerable<T> collection
)

Parameters

target
Type: System.Collections.GenericICollectionT
The target collection.
collection
Type: System.Collections.GenericIEnumerableT
The collection to add to 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 ICollectionT. 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 .
Remarks

See Also

Reference