Class CollectionExtensions
Extension methods for the System.Collections.Generic.ICollection<T> interface.
Inheritance
System.Object
CollectionExtensions
Namespace: Cuemon.Collections.Generic
Assembly: Cuemon.Core.dll
Syntax
public static class CollectionExtensions
Methods
| Improve this DocAddRange<T>(ICollection<T>, T[])
Adds the elements of the specified source to the collection.
Declaration
public static void AddRange<T>(this ICollection<T> collection, params T[] source)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.ICollection<T> | collection | The extended collection. |
| T[] | source | The sequence of elements that should be added to |
Type Parameters
| Name | Description |
|---|---|
| T | The type of elements in the System.Collections.Generic.ICollection<T>. |
AddRange<T>(ICollection<T>, IEnumerable<T>)
Adds the elements of the specified source to the collection.
Declaration
public static void AddRange<T>(this ICollection<T> collection, IEnumerable<T> source)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.ICollection<T> | collection | The extended collection. |
| System.Collections.Generic.IEnumerable<T> | source | The sequence of elements that should be added to |
Type Parameters
| Name | Description |
|---|---|
| T | The type of elements in the System.Collections.Generic.ICollection<T>. |