Wintellect.PowerCollections Namespace
Algorithms Class
Algorithms Methods
GhostDoc Pro Sample Help File

Algorithms..::..FillRange<(Of <(<'T>)>)> Method (IList<(Of <(<'T>)>)>, Int32, Int32, T)

Replaces each item in a part of a list with a given value.

Namespace:  Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax


public static void FillRange<T>(
	IList<T> list,
	int start,
	int count,
	T value
)
Public Shared Sub FillRange(Of T) ( _
	list As IList(Of T), _
	start As Integer, _
	count As Integer, _
	value As T _
)
public:
generic<typename T>
static void FillRange(
	IList<T>^ list, 
	int^ start, 
	int^ count, 
	T value
)

Type Parameters

T
The type of items in the list.

Parameters

list
Type: IList<(Of <(<'T>)>)>
The list to modify.
start
Type: Int32
The index at which to start filling. The first index in the list has index 0.
count
Type: Int32
The number of items to fill.
value
Type: T
The value to fill with.

Exceptions


ExceptionCondition
ArgumentExceptionlist is a read-only list.
ArgumentOutOfRangeExceptionstart or count is negative, or start + count is greater than list.Count.
ArgumentNullExceptionlist is null.