List.definitionString Method
Returns a description of the type of the elements in the list.
Syntax
public str definitionString()
Run On
Called
Return Value
Type: str
A string that contains a definition of the list.
Remarks
For example, this method could return "list of int".
To print a list of the values within the list, use the List.toString method.
Examples
The following example creates a list of integers. The definitionString method is used to print a description of the list.
{
// Create a list of integers
List il = new List(Types::Integer);
// Add some elements to the list
il.addEnd(1);
il.addEnd(2);
il.addStart(3);
// Print a description ofvthe list
print il.definitionString();
print il.toString();
pause;
}