IDictionaryDynamicAdvice<TKey, TValue> Interface |
Namespace: PostSharp.Patterns.Collections.Advices
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 2023.0.3.0 (2023.0.3.0)
public interface IDictionaryDynamicAdvice<TKey, TValue> : ICollectionDynamicAdviceBase, IDynamicAdvice, IDynamicInterfaceImplementation
Type Parameters
- TKey
- Type of dictionary keys.
- TValue
- Type of dictionary values.
The IDictionaryDynamicAdvice<TKey, TValue> type exposes the following members.
Name | Description | |
---|---|---|
AdvisedObject |
Gets the principal object for which the current object is an indirect interface implementation.
(Inherited from IDynamicInterfaceImplementation.) | |
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 IDynamicAdvice.) | |
Order |
Gets the execution order of the dynamic advice. See DynamicAdviceOrder.
(Inherited from IDynamicAdvice.) |
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 IDynamicAdvice.) | |
Initialize |
Initializes the current advice.
(Inherited from IDynamicAdvice.) | |
IsReadOnly |
Determines whether the advised collection is read-only.
(Inherited from ICollectionDynamicAdviceBase.) | |
IsSynchronized |
Determines whether the advised collection is synchronized (i.e. thread-safe).
(Inherited from ICollectionDynamicAdviceBase.) | |
QueryInterface<T> |
Gets the implementation of an interface.
(Inherited from IDynamicAdvice.) | |
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.
|