Adds a range of values to a collection.
- Namespace
- Statiq
.Common - Containing Type
- I
Collection Extensions
Syntax
public static void AddRange<T>(this ICollection<T> collection, IEnumerable<T> items)
Type Parameters
Name | Description |
---|---|
T | The type of the collection items. |
Parameters
Name | Type | Description |
---|---|---|
collection | ICollection |
The collection to add values to. |
items | IEnumerable |
The items to add. |