CollectionDynamicAdvice<T> Class |

PostSharp.Patterns.DynamicAdvising.DynamicAdvice
PostSharp.Patterns.Collections.Advices.CollectionDynamicAdvice<T>
Namespace: PostSharp.Patterns.Collections.Advices
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.4.11.0 (6.4.11.0)

public abstract class CollectionDynamicAdvice<T> : DynamicAdvice, ICollectionDynamicAdvice<T>, ICollectionDynamicAdviceBase, IDynamicAdvice, IDynamicInterfaceImplementation
Type Parameters
- T
- Type of collection items.
The CollectionDynamicAdvice<T> type exposes the following members.

Name | Description | |
---|---|---|
![]() | CollectionDynamicAdvice<T> |
Initializes a new CollectionDynamicAdvice<T>.
|

Name | Description | |
---|---|---|
![]() | AdvisedObject |
Gets the advised object.
(Inherited from DynamicAdvice.) |
![]() | Collection |
Gets the target AdvisableCollection<T>.
|
![]() | 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 | |
---|---|---|
![]() | ClearItems |
Empties the advised collection.
|
![]() | 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.) |
![]() | InsertItem |
Inserts an item into the advised collection.
|
![]() | InsertMany |
Inserts several items to the advised collection.
|
![]() | IsReadOnly |
Determines whether the advised collection is read-only.
|
![]() | IsSynchronized |
Determines whether the advised collection is synchronized (i.e. thread-safe).
|
![]() | MoveItem |
Moves an item of the advised collection from an old index to a new index.
|
![]() | QueryInterface<TInterface> | (Inherited from DynamicAdvice.) |
![]() | RemoveItem |
Removes an item from the advised collection.
|
![]() | RemoveMany |
Removes several items from the advised collection.
|
![]() | SetItem |
Replaces an item in the advised collection.
|
![]() | ToArray |
Copies the advised collection into a new array.
|
