Table of Contents

Method AddRepeated

Namespace
Pinwheel.Vista
Assembly
Pinwheel.Vista.Runtime.dll

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

list IList<T>

List to append to.

value T

Value to append.

count int

Number of times to append value.

Type Parameters

T

Element type stored in the list.