Method AddRange
AddRange<T>(ICollection<T>, params IEnumerable<T>?)
Adds a range of values to a collection
public static void AddRange<T>(this ICollection<T> self, params IEnumerable<T>? range)
Parameters
selfICollection<T>Collection to Add values to
rangeIEnumerable<T>values to add
Type Parameters
TType of elements in the collection