Open sandboxFocus

Method Remove

Remove<T>(T)

Creates a new IncrementalHashSet<T> that represents the operation of removing an item from the collection.

Declaration
public static IncrementalHashSet<T> Remove<T>(T item) where T : notnull
Parameters
Type Name Description
T item

The item to remove from the collection.

Returns
Type Description
IncrementalHashSet<T>

An IncrementalHashSet<T> representing the removal of the specified item.

Type Parameters
Name Description
T

The type of items in the hash set.

Remarks

If the item was previously added by another layer, this operation removes it from the final merged collection.

Remove<T>(params T[])

Creates a new IncrementalHashSet<T> that represents the operation of removing items from the collection.

Declaration
public static IncrementalHashSet<T> Remove<T>(params T[] items) where T : notnull
Parameters
Type Name Description
T[] items

The items to remove from the collection.

Returns
Type Description
IncrementalHashSet<T>

An IncrementalHashSet<T> representing the removal of the specified items.

Type Parameters
Name Description
T

The type of items in the hash set.

Remarks

If any items were previously added by another layer, this operation removes them from the final merged collection.

Remove<T>(IEnumerable<T>)

Creates a new IncrementalHashSet<T> that represents the operation of removing items from the collection.

Declaration
public static IncrementalHashSet<T> Remove<T>(IEnumerable<T> items) where T : notnull
Parameters
Type Name Description
IEnumerable<T> items

The items to remove from the collection.

Returns
Type Description
IncrementalHashSet<T>

An IncrementalHashSet<T> representing the removal of the specified items.

Type Parameters
Name Description
T

The type of items in the hash set.

Remarks

If any items were previously added by another layer, this operation removes them from the final merged collection.