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

Method RemoveItem

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.