list class : RemoveAt(int) method
Description
Removes the element at the specified index of the list.
Syntax
listInstance.RemoveAt(int index)
Arguments
Class | Name | Description |
int | index | Position to remove. |
Return value
None (Ver 1.1.0.0 changed)
Class | Description |
some class | The element that was removed. |
Sample code
//anyList is a instance of list{string} type.
string removed = anyList.RemoveAt(0);
Notes
It's a wrapper of the System.Collections.Generic.List<t>.RemoveAt(Int32).
The index is 0-based.
The return value of the method has been changed in Ver 1.1.0.0. The removed element is returned.