List.new Method

Creates a list.

Syntax

public void new(Types Type)

Run On

Called

Parameters

Remarks

The possible values for the Type parameter are supplied by the Types system enum.

After you have created a list, you cannot change the type of the elements it contains.

Examples

The following example creates a list of strings.

{ 
    // Creates a list of integers. 
    List il = new List(Types::String); 
}

See Also

Reference

List Class