Removes the element at the specified position in this list.
Declaration Syntax
Parameters
- index (Int32)
- The zero-based index of the element to remove.
Return Value
The element previously at position index.
Remarks
Shifts any subsequent elements to the left (subtracts one from
their indices). Returns the element that was removed from the list.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | index is out of range.
|