Click or drag to resize
Ranorex

ExtensionMethodsAddRangeT Method

Adds the items of the specified enumerable to the end of the collection.

Namespace:  Ranorex.Core
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public static void AddRange<T>(
	ICollection<T> collection,
	IEnumerable<T> items
)

Parameters

collection
Type: System.Collections.GenericICollectionT
An ICollectionT instance.
items
Type: System.Collections.GenericIEnumerableT
The items to add to the collection.

Type Parameters

T
The type of the items in the collection.
Exceptions
ExceptionCondition
ArgumentNullExceptioncollection or items is a null reference.
See Also