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