 | 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
Syntaxpublic static void AddRange<T>(
ICollection<T> collection,
IEnumerable<T> items
)
Public Shared Sub AddRange(Of T) (
collection As ICollection(Of T),
items As IEnumerable(Of T)
)
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| Exception | Condition |
|---|
| ArgumentNullException | collection or items
is a null reference. |
See Also