ES2.LoadQueue
Parameters
T | The type of the data in the Queue 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. |
Returns
Queue<T> | Our loaded Queue. |
Description
Loads a Queue containing data of type T from the specified path.
C#
1 2 3 4 5 6 7 8 9 |
// Create a Queue of int values and save it. Queue myQueue<int> = new Queue<int>(); myQueue.Enqueue(1); myQueue.Enqueue(2); ES2.Save(myQueue, "myFile.txt?tag=myQueue"); // Load the Queue and re-assign it to our variable. myQueue = ES2.LoadQueue<int>("myFile.txt?tag=myQueue"); |
JS
1 2 3 4 5 6 7 8 9 |
// Create a Queue of int values and save it. var myQueue = new Queue.<int>(); myQueue.Enqueue(1); myQueue.Enqueue(2); ES2.Save(myQueue, "myFile.txt?tag=myQueue"); // Load the Queue and re-assign it to our variable. myQueue = ES2.LoadQueue.<int>("myFile.txt?tag=myQueue"); |