PostSharpAPI ReferencePost­Sharp.​Patterns.​CollectionsAdvisable­Dictionary<TKey, TValue>Remove­Item
Open sandboxFocus

AdvisableDictionary<TKey, TValue>.RemoveItem Method

RemoveItem(TKey)

Removes the value with the specific key from the underlying dictionary.

Declaration
protected virtual bool RemoveItem(TKey key)
Parameters
Type Name Description
TKey key

The key of the element to remove.

Returns
Type Description
Boolean

true if the element was successfully found and removed, otherwise false. This method returns false if key if not found in the underlying dictionary.

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.