Remove(T)
Creates a new IncrementalHashSet<T> that represents the operation of removing an item from the collection, in addition to any operations represented by the current object.
Declaration
public IncrementalHashSet<T> Remove(T item)Parameters
| Type | Name | Description |
|---|---|---|
| T | item | The item to remove from the collection. |
Returns
| Type | Description |
|---|---|
| IncrementalHashSet<T> | A new IncrementalHashSet<T> with the additional remove operation. |
Remarks
This method does not modify the current instance; it returns a new instance with the combined operations.
Remove(T[])
Creates a new IncrementalHashSet<T> that represents the operation of removing items from the collection, in addition to any operations represented by the current object.
Declaration
public IncrementalHashSet<T> Remove(T[] items)Parameters
| Type | Name | Description |
|---|---|---|
| T[] | items | The items to remove from the collection. |
Returns
| Type | Description |
|---|---|
| IncrementalHashSet<T> | A new IncrementalHashSet<T> with the additional remove operations. |
Remarks
This method does not modify the current instance; it returns a new instance with the combined operations.
Remove(IEnumerable<T>)
Creates a new IncrementalHashSet<T> that represents the operation of removing items from the collection, in addition to any operations represented by the current object.
Declaration
public IncrementalHashSet<T> Remove(IEnumerable<T> items)Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<T> | items | The items to remove from the collection. |
Returns
| Type | Description |
|---|---|
| IncrementalHashSet<T> | A new IncrementalHashSet<T> with the additional remove operations. |
Remarks
This method does not modify the current instance; it returns a new instance with the combined operations.