Method AddRepeated
AddRepeated<T>(IList<T>, T, int)
Appends the same item to a list multiple times.
public static void AddRepeated<T>(this IList<T> list, T value, int count)
Parameters
listIList<T>List to append to.
valueTValue to append.
countintNumber of times to append
value.
Type Parameters
TElement type stored in the list.