Defines the semantics of a dynamic advice that can be applied to an AdvisableDictionary<TKey, TValue>.
Namespace: PostSharp.Patterns.Collections.Advices
Assembly: PostSharp.Patterns.Common.dll
Syntax
public interface IDictionaryDynamicAdvice<TKey, TValue> : ICollectionDynamicAdviceBase, IDynamicAdvice, IDynamicInterfaceImplementation
Type Parameters
Name | Description |
---|---|
TKey | Type of dictionary keys. |
TValue | Type of dictionary values. |
Methods
Name | Description |
---|---|
AddItem(TKey, TValue, AdviceEnumerator<IDictionaryDynamicAdvice<TKey, TValue>>) | Adds an item to the dictionary. |
ClearItems(AdviceEnumerator<IDictionaryDynamicAdvice<TKey, TValue>>) | Empties the dictionary. |
RemoveItem(TKey, TValue, AdviceEnumerator<IDictionaryDynamicAdvice<TKey, TValue>>) | Removes an item from the dictionary. |
SetItem(TKey, TValue, TValue, AdviceEnumerator<IDictionaryDynamicAdvice<TKey, TValue>>) | Replaces an item with another one in the dictionary. |
ToArray(AdviceEnumerator<IDictionaryDynamicAdvice<TKey, TValue>>) | Copies the dictionary to an array of keys and values. |