Open sandboxFocus

Class IncrementalHashSet

Factory methods for the IncrementalHashSet<T> generic class.

Inheritance
IncrementalHashSet
Namespace: Metalama.Framework.Options
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public static class IncrementalHashSet
Remarks

This static class provides convenient factory methods for creating IncrementalHashSet<T> instances. These methods are useful when constructing incremental hash sets as properties within hierarchical options classes.

Incremental hash sets are typically used in option classes when you need a property that represents a set of items that can be added to or removed from across different configuration layers. For example, you might have a set of excluded method names that can be extended or reduced at the project, namespace, or type level.

Methods

Name Description
Add<T>(IEnumerable<T>)

Creates a new IncrementalHashSet<T> that represents the operation of adding items to the collection.

Add<T>(T)

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

Add<T>(params T[])

Creates a new IncrementalHashSet<T> that represents the operation of adding items to the collection.

Clear<T>()

Creates a new IncrementalHashSet<T> that represents the operation of clearing the collection of all items.

Empty<T>()

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

Remove<T>(IEnumerable<T>)

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

Remove<T>(T)

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

Remove<T>(params T[])

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

See Also