Open sandboxFocus

Method Add

Add<T>(T)

Creates new IncrementalHashSet<T> that represents the operation of adding an item to the collection, or to override with a new value if these items already exist.

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

Add<T>(params T[])

Creates new IncrementalHashSet<T> that represents the operation of adding items to the collection, or to override with a new value if these items already exist.

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

Add<T>(IEnumerable<T>)

Creates new IncrementalHashSet<T> that represents the operation of adding items to the collection, or to override with a new value if these items already exist.

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