ListExtensions.Add<T>

Extension Method in ListExtensions

Declaration

public static void Add<T>(this List<T> list, T value, int amount)

Description

Adds a specified amount of a given value to the list.

Type Parameters

TThe type of the list.

Parameters

listThe list to add to.
valueThe value to add.
amountThe number of times to add the value.