ES2.LoadStack
public static Stack<T> LoadStack<T>(string path, ES2Settings settings=null)
Parameters
[table th=”0″]T,”The type of the data in the Stack we want to load. Must be on the Supported Types list.
path,”The path where our data is stored. For more information, see Paths.”
settings,”Optional. A user-created ES2Settings object containing options not specified in path.”[/table]
Returns
[table th=”0″]Stack<T>,”Our loaded Stack.”[/table]
Description
Loads a Stack containing data of type T from the specified path.
C#
// Create a Stack of int values and save it. Stack myStack<int> = new Stack<int>(); myStack.Push(1); myStack.Push(2); ES2.Save(myStack, "myFile.txt?tag=myStack"); // Load the Stack and re-assign it to our variable. myStack = ES2.LoadStack<int>("myFile.txt?tag=myStack");
JS
// Create a Stack of int values and save it. var myStack = new Stack.<int>(); myStack.Push(1); myStack.Push(2); ES2.Save(myStack, "myFile.txt?tag=myStack"); // Load the Stack and re-assign it to our variable. myStack = ES2.LoadStack.<int>("myFile.txt?tag=myStack");