Click or drag to resize
AlgorithmsFillT Method (IListT, T)
Replaces each item in a list with a given value. The list does not change in size.

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

Parameters

list
Type: System.Collections.GenericIListT
The list to modify.
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.
ArgumentNullExceptionlist is null.
See Also