stack class : ToList() method
Description
Copies the stack elements to a new list.
Syntax
stackInstance.ToList()
Arguments
None
Return value
Class | Description |
someList | List to be copied. |
Sample code
//anyStack is a instance of stack{string} type.
list{string} strList = anyStack.ToList();
Notes
None
Links for reference
None