Method FillWith
FillWith<T>(List<T>, IEnumerable<T>)
Replaces current contents of the list with a copy of the given collection.
Declaration
public static void FillWith<T>(this List<T> list, IEnumerable<T> collection)
Parameters
Type | Name | Description |
---|---|---|
List<T> | list | The list to modify. |
IEnumerable<T> | collection | The collection to copy. |
Type Parameters
Name | Description |
---|---|
T | The type of elements in the list. |