Open sandboxFocus

Interface ICollectionDynamicAdvice<T>

Defines the semantics of a dynamic advice that can be applied to an AdvisableCollection<T>.

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

Type of collection items.

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.

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.