list class : RemoveAt(int) method

Description

Removes the element at the specified index of the list.

Syntax

listInstance.RemoveAt(int index)

Arguments

ClassNameDescription
intindexPosition to remove.

Return value

None (Ver 1.1.0.0 changed)

ClassDescription
some classThe 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.

Links for reference

Copyright © Rice All rights reserved.