list class : GetAt(int) method

Description

Gets the element at the specified index.

Syntax

listInstance.GetAt(int index)

Arguments

ClassNameDescription
intindexIndex of the element to get.

Return value

ClassDescription
someClassElement to be got.

Sample code

//anyList is a instance of list{string} type.

string str = anyList.GetAt(5);

Notes

The index is 0-based.

Links for reference

Copyright © Rice All rights reserved.