PostSharpAPI ReferencePost­Sharp.​Patterns.​CollectionsAdvisable­Hash­Set<T>Change­Many­Items
Open sandboxFocus

Method ChangeManyItems

ChangeManyItems(IList<T>, IList<T>)

Modifies the underlying set by adding and removing the specified items.

Declaration
protected virtual void ChangeManyItems(IList<T> itemsToAdd, IList<T> itemsToRemove)
Parameters
Type Name Description
IList<T> itemsToAdd

The objects to insert. The value can be null for reference types.

IList<T> itemsToRemove

The objects to remove. The value can be null for reference types.