ES2.LoadHashSet
public static HashSet<T> LoadHashSet<T>(string path, ES2Settings settings=null)
Parameters
[table th=”0″]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.”[/table]
Returns
[table th=”0″]HashSet<T>,”Our loaded HashSet.”[/table]
Description
Loads a HashSet containing data of type T from the specified path.
C#
// 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
// 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");