MetalamaAPI documentationAspect APIMetalama.​Framework.​OptionsIncremental­Hash­SetAdd
Open sandboxFocus

IncrementalHashSet.Add Method

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)
Parameters
Type Name Description
T item
Returns
Type Description
IncrementalHashSet<T>
Type Parameters
Name Description
T

Add<T>(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)
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)
Parameters
Type Name Description
IEnumerable<T> items
Returns
Type Description
IncrementalHashSet<T>
Type Parameters
Name Description
T