Click or drag to resize
AlgorithmsFillRangeT Method (IListT, Int32, Int32, T)
Replaces each item in a part of a list with a given value.

Namespace: X3Platform.Collections
Assembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntax
public static void FillRange<T>(
	IList<T> list,
	int start,
	int count,
	T value
)

Parameters

list
Type: System.Collections.GenericIListT
The list to modify.
start
Type: SystemInt32
The index at which to start filling. The first index in the list has index 0.
count
Type: SystemInt32
The number of items to fill.
value
Type: T
The value to fill with.

Type Parameters

T
The type of items in the list.
Exceptions
ExceptionCondition
ArgumentExceptionlist is a read-only list.
ArgumentOutOfRangeExceptionstart or count is negative, or start + count is greater than list.Count.
ArgumentNullExceptionlist is null.
See Also