stack class : ToList() method

Description

Copies the stack elements to a new list.

Syntax

stackInstance.ToList()

Arguments

None

Return value

ClassDescription
someListList to be copied.

Sample code

//anyStack is a instance of stack{string} type.

list{string} strList = anyStack.ToList();

Notes

None

Links for reference

None

Copyright © Rice All rights reserved.