Method AddRange
- Namespace
- Gamelogic.Extensions.Algorithms
- Assembly
- Gamelogic.Extensions.dll
AddRange<T>(ICollection<T>, IEnumerable<T>)
Adds all elements of other to the given collection.
public static void AddRange<T>(this ICollection<T> collection, IEnumerable<T> other)
Parameters
collectionICollection<T>The collection to add elements to.
otherIEnumerable<T>The elements to add. If null, nothing is added.
Type Parameters
TThe type of elements in the collection.