PostSharp 6.9 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Collections Namespace / Advisable­Dictionary(TKey, TValue) Class / Advisable­Dictionary(TKey, TValue) Methods / Advisable­Dictionary(TKey, TValue).​Remove­Item Method

AdvisableDictionary<TKey, TValue>.RemoveItem Method

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

Namespace:  PostSharp.Patterns.Collections
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: (
protected virtual bool RemoveItem(
	TKey key


Type: TKey
The key of the element to remove.

Return Value

Type: 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.

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