DictionaryDynamicAdvice<TKey, TValue> Class |
PostSharp.Patterns.DynamicAdvising.DynamicAdvice
PostSharp.Patterns.Collections.Advices.DictionaryDynamicAdvice<TKey, TValue>
Namespace: PostSharp.Patterns.Collections.Advices
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 2023.0.3.0 (2023.0.3.0)
public abstract class DictionaryDynamicAdvice<TKey, TValue> : DynamicAdvice, IDictionaryDynamicAdvice<TKey, TValue>, ICollectionDynamicAdviceBase, IDynamicAdvice, IDynamicInterfaceImplementation
Type Parameters
- TKey
- Type of dictionary keys.
- TValue
- Type of dictionary values.
The DictionaryDynamicAdvice<TKey, TValue> type exposes the following members.
Name | Description | |
---|---|---|
DictionaryDynamicAdvice<TKey, TValue> |
Initializes a new DictionaryDynamicAdvice<TKey, TValue>.
|
Name | Description | |
---|---|---|
AdvisedObject |
Gets the advised object.
(Inherited from DynamicAdvice.) | |
Dictionary |
Gets the advised dictionary.
| |
Identity |
Gets the type identity of the advice, which should correspond to the first parameter of the Advise(Type, Func<IQueryInterface, IDynamicAdvice>) method.
This is typically the generic type definition of the advice
(Inherited from DynamicAdvice.) | |
Order |
Gets the execution order of the dynamic advice. See DynamicAdviceOrder.
(Inherited from DynamicAdvice.) |
Name | Description | |
---|---|---|
AddItem |
Adds an item to the dictionary.
| |
ClearItems |
Empties the dictionary.
| |
Dispose |
Disposes the current advice. // We don't use IDisposable so that advises are not be cast to IDisposable by default.
(Inherited from DynamicAdvice.) | |
Initialize |
Initializes the current advice.
(Inherited from DynamicAdvice.) | |
IsReadOnly |
Determines whether the advised collection is read-only.
| |
IsSynchronized |
Determines whether the advised collection is synchronized (i.e. thread-safe).
| |
QueryInterface<TInterface> | (Inherited from DynamicAdvice.) | |
RemoveItem |
Removes an item from the dictionary.
| |
SetItem |
Replaces an item with another one in the dictionary.
| |
ToArray |
Copies the dictionary to an array of keys and values.
|