Method RemoveAt
RemoveAt(Int32)
Removes the element at the specified index from the list
represented by this instance.
Declaration
public void RemoveAt(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | index | The zero-based index of the element to remove. |
Remarks
This operation may involve shifting the elements following the
index to the left to replace the removed
element.
Exceptions
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException | If
index is less than 0 or equal to or greater
than Count |