Wintellect.PowerCollections Namespace
Algorithms Class
GhostDoc Pro Sample Help File

ListBase<(Of <(<'T>)>)>..::..Insert Method

This method must be overridden by the derived class to insert a new item at the given index.

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

Syntax


public void Insert(
	int index,
	T item
)
Public Sub Insert ( _
	index As Integer, _
	item As T _
)
public:
void Insert(
	int^ index, 
	T item
)

Parameters

index
Type: Int32
The index in the list to insert the item at. After the insertion, the inserted item is located at this index. The first item in the list has index 0.
item
Type: T
The item to insert at the given index.

Exceptions


ExceptionCondition
ArgumentOutOfRangeExceptionindex is less than zero or greater than Count.