EnumerableExt..::..Replace<(Of <(<'T>)>)> Method

This extension method replaces an item in a collection that implements the IList interface.

Namespace:  Core
Assembly:  Core (in Core.dll)

Syntax


public static void Replace<T>(
	IList<T> thisList,
	int position,
	T item
)

Type Parameters

T
The type of the field that we are manipulating

Parameters

thisList
Type: IList<(Of <(<'T>)>)>
The input list
position
Type: Int32
The position of the old item
item
Type: T
The item we are goint to put in it's place

Return Value

True in case of a replace, false if failed