Class CollectionExtensions
Class that provides extension methods to Collection
Namespace: Sartorius.SAF.Extensions
Assembly: Sartorius.SAF.dll
Syntax
public static class CollectionExtensions
Methods
View SourceAddRange<T, TCollection>(TCollection, IEnumerable<T>)
Adds a range of items to a collection.
Declaration
public static TCollection AddRange<T, TCollection>(this TCollection collection, IEnumerable<T> items) where TCollection : ICollection<T>
Parameters
| Type | Name | Description |
|---|---|---|
| TCollection | collection | The collection to add items to. |
| IEnumerable<T> | items | The items to add to the collection. |
Returns
| Type | Description |
|---|---|
| TCollection | The collection. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of objects within the collection. |
| TCollection | The type of the collection. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown if |