ReadOnlyCollection<T>.IList<T>.Insert(Int32, T) Method

Definition

Inserts an item to the IList<T> at the specified index. This implementation always throws NotSupportedException.

 virtual void System.Collections.Generic.IList<T>.Insert(int index, T value) = System::Collections::Generic::IList<T>::Insert;
void IList<T>.Insert (int index, T value);
abstract member System.Collections.Generic.IList<T>.Insert : int * 'T -> unit
override this.System.Collections.Generic.IList<T>.Insert : int * 'T -> unit
Sub Insert (index As Integer, value As T) Implements IList(Of T).Insert

Parameters

index
Int32

The zero-based index at which value should be inserted.

value
T

The object to insert into the IList<T>.

Implements

Exceptions

Always thrown.

Remarks

This member is an explicit interface member implementation. It can be used only when the ReadOnlyCollection<T> instance is cast to an IList<T> interface.

Applies to