PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Collections.​Advices Namespace / Dictionary­Dynamic­Advice(TKey, TValue) Class / Dictionary­Dynamic­Advice(TKey, TValue) Methods

DictionaryDynamicAdvice<TKey, TValue> Methods

The DictionaryDynamicAdvice<TKey, TValue> generic type exposes the following members.

Public methodAddItem
Adds an item to the dictionary.
Public methodClearItems
Empties the dictionary.
Public methodDispose
Disposes the current advice. // We don't use IDisposable so that advises are not be cast to IDisposable by default.
(Inherited from DynamicAdvice.)
Public methodInitialize
Initializes the current advice.
(Inherited from DynamicAdvice.)
Public methodIsReadOnly
Determines whether the advised collection is read-only.
Public methodIsSynchronized
Determines whether the advised collection is synchronized (i.e. thread-safe).
Public methodQueryInterface<TInterface> (Inherited from DynamicAdvice.)
Public methodRemoveItem
Removes an item from the dictionary.
Public methodSetItem
Replaces an item with another one in the dictionary.
Public methodToArray
Copies the dictionary to an array of keys and values.
See Also