Clear<T>()
Creates a new IncrementalHashSet<T> that represents the operation of clearing the collection of all items.
Declaration
public static IncrementalHashSet<T> Clear<T>() where T : notnullReturns
| Type | Description |
|---|---|
| IncrementalHashSet<T> | An IncrementalHashSet<T> that, when merged, clears all previous items from the collection. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of items in the hash set. |
Remarks
This operation discards all items from previous layers. It is useful when you want to start with an empty set at a specific configuration level, ignoring all inherited items.