Method ExceptWithNonAlloc
ExceptWithNonAlloc<T>(HashSet<T>, HashSet<T>)
Remove any elements in this set that are in the set specified by other.
Declaration
public static void ExceptWithNonAlloc<T>(this HashSet<T> self, HashSet<T> other)
Parameters
| Type | Name | Description |
|---|---|---|
| HashSet<T> | self | The set from which to remove elements. |
| HashSet<T> | other | The set of elements to remove. |
Type Parameters
| Name | Description |
|---|---|
| T | The type contained in the set. |
Remarks
Equivalent to ExceptWith(IEnumerable<T>), but without any allocation.