Open sandboxFocus

Class CollectionDynamicAdvice<T>

Base implementation of the ICollectionDynamicAdvice<T> interface.

Inheritance
CollectionDynamicAdvice<T>
Namespace: PostSharp.Patterns.Collections.Advices
Assembly: PostSharp.Patterns.Common.dll
Syntax
public abstract class CollectionDynamicAdvice<T> : DynamicAdvice, ICollectionDynamicAdvice<T>, ICollectionDynamicAdviceBase, IDynamicAdvice, IDynamicInterfaceImplementation
Type Parameters
Name Description
T

Type of collection items.

Constructors

Name Description
CollectionDynamicAdvice(IQueryInterface)

Initializes a new CollectionDynamicAdvice<T>.

Properties

Name Description
Collection

Gets the target AdvisableCollection<T>.

Methods

Name Description
ClearItems(AdviceEnumerator<ICollectionDynamicAdvice<T>>)

Empties the advised collection.

InsertItem(int, T, AdviceEnumerator<ICollectionDynamicAdvice<T>>)

Inserts an item into the advised collection.

InsertMany(int, T[], AdviceEnumerator<ICollectionDynamicAdvice<T>>)

Inserts several items to the advised collection.

IsReadOnly(AdviceEnumerator<ICollectionDynamicAdviceBase>)

Determines whether the advised collection is read-only.

IsSynchronized(AdviceEnumerator<ICollectionDynamicAdviceBase>)

Determines whether the advised collection is synchronized (i.e. thread-safe).

MoveItem(T, int, int, AdviceEnumerator<ICollectionDynamicAdvice<T>>)

Moves an item of the advised collection from an old index to a new index.

RemoveItem(int, T, AdviceEnumerator<ICollectionDynamicAdvice<T>>)

Removes an item from the advised collection.

RemoveMany(int, T[], AdviceEnumerator<ICollectionDynamicAdvice<T>>)

Removes several items from the advised collection.

SetItem(int, T, T, AdviceEnumerator<ICollectionDynamicAdvice<T>>)

Replaces an item in the advised collection.

ToArray(AdviceEnumerator<ICollectionDynamicAdvice<T>>)

Copies the advised collection into a new array.