Edit

Share via


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.

C#
void IList<T>.Insert(int index, T value);

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