Skip to content

ListObservable.Insert(int, T) method

Defined in

Type: ListObservable Namespace: System.Reactive Assembly: System.Reactive.dll

Applies to

netstandard2.0, net472

public void Insert(int index, T item)

Inherited documentation

These docs were inherited from IList<T>. The member doesn't override them on this type.

Summary: Inserts an item to the IList (opens in a new tab) at the specified index.

Parameters

NameTypeDescription
indexint (opens in a new tab)The zero-based index at which item should be inserted.
itemTThe object to insert into the IList (opens in a new tab).

Exceptions

TypeCondition
System.ArgumentOutOfRangeException (opens in a new tab)index is not a valid index in the IList (opens in a new tab).
System.NotSupportedException (opens in a new tab)The IList (opens in a new tab) is read-only.