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: 6.0.18.0 (6.0.18.0)
Syntax
C#
protected virtual bool RemoveItem(
	TKey key
)

Parameters

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.
Remarks

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