VirtualCollectionTInsert Method

Inserts an element into the VirtualCollectionT at the specified index.
Calls the overridable InsertItem method.

Definition

Namespace: KGySoft.Collections.ObjectModel
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
C#
public void Insert(
	int index,
	T item
)

Parameters

index  Int32
The zero-based index at which item should be inserted.
item  T
The object to insert.

Implements

IListTInsert(Int32, T)

Exceptions

ArgumentOutOfRangeExceptionindex is less than zero, or greater than Count.
NotSupportedExceptionIsReadOnly returns .

See Also