Mono Class Library: System.Collections.Generic.IList<T> Overview | Members

System.Collections.Generic.IList<T>.RemoveAt Method

Removes the item at the specified index of the current instance. [Edit]

public void RemoveAt (int index)

Parameters

index
A stem.Int32 that specifies the zero-based index of the item to remove. [Edit]

Exceptions

TypeReason
ArgumentOutOfRangeExceptionindex is not a valid index in the current instance. [Edit]
NotSupportedExceptionThe current instance is read-only. [Edit]

Remarks

In collections of contiguous elements, such as lists, the elements that follow the removed element have indices one less than previously. If the collection is indexed, the indexes of the elements that are moved are also updated. [Edit]

Requirements

Namespace: System.Collections.Generic
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0