format
typescript
HashSet.Clear()class: HashSet
description
Clears the elements in the collection.
parameter
| param_name | type | description |
|---|
reture
| type | description |
|---|---|
void |
code example
typescript
let myHashSet = new HashSet<String>(String);
// Add elements to myHashSet
myHashSet.Add("apple");
myHashSet.Add("banana");
myHashSet.Add("orange");
myHashSet.Clear();