list class : First getter

Description

Gets the first element of the list.

Syntax

listInstance.First

Arguments

None

Return value

ClassDescription
someClassElement to be got.

Sample code

1:

list{string} stringList = new list{string}();

2:

stringList.Add("a");

3:

stringList.Add("b");

4:

string resultString = stringList.First; // The result (resultString) is "a".

Notes

We recommend using FirstChild getter.

Links for reference

Copyright © Rice All rights reserved.