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

AdvisableHashSet<T>.ChangeManyItems Method

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.

Remarks

note

This method does not cause the advices to be executed. It should be invoked only from inside the scope of the ExecuteWithAdvices method.