Click or drag to resize

fillFillT Method (IListT, FuncInt32, T, Int32, NullableInt32)

Namespace:  WhetStone.Looping
Assembly:  WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax
C#
public static void Fill<T>(
	this IList<T> tofill,
	Func<int, T> filler,
	int start = 0,
	Nullable<int> count = null
)

Parameters

tofill
Type: System.Collections.GenericIListT
The IListT to fill.
filler
Type: SystemFuncInt32, T
A function that retrieves the values to fill tofill with.
start (Optional)
Type: SystemInt32
The first index to be filled.
count (Optional)
Type: SystemNullableInt32
The number of indices to be filled, or to continue filling to the end of the IListT.

Type Parameters

T
The type of the values to fill.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IListT. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also