Open sandboxFocus

Method Empty

Empty<T>()

Creates a new IncrementalHashSet<T> that represents the absence of any operation.

Declaration
public static IncrementalHashSet<T> Empty<T>() where T : notnull
Returns
Type Description
IncrementalHashSet<T>

An empty IncrementalHashSet<T> representing no changes to the collection.

Type Parameters
Name Description
T

The type of items in the hash set.

Remarks

This is equivalent to not setting the property at all. When merged with another set, the other set's operations take precedence.