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

AdvisableDictionary<TKey, TValue>.AddItem Method

AddItem(TKey, TValue)

Adds an element into the underlying dictionary.

protected virtual void AddItem(TKey key, TValue value)
Type Name Description
TKey key

The key of the element to add.

TValue value

The value of the element to add. The value can be null for reference types..



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