Method AddRange
AddRange<T>(IList<T>, IEnumerable<T>)
Adds a range of values to the specified IList.
public static void AddRange<T>(this IList<T> list, IEnumerable<T> values)
Parameters
listIList<T>The list to update.
valuesIEnumerable<T>The elements to add to the list.
Type Parameters
TThe list element type.