PostSharp.ILAPI ReferencePost­Sharp.​Patterns.​Collections.​AdvicesCollection­Dynamic­Advice<T>
Open sandboxFocus

CollectionDynamicAdvice<T> Class

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(Int32, T, AdviceEnumerator<ICollectionDynamicAdvice<T>>)

Inserts an item into the advised collection.

InsertMany(Int32, 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, Int32, Int32, AdviceEnumerator<ICollectionDynamicAdvice<T>>)

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

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

Removes an item from the advised collection.

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

Removes several items from the advised collection.

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

Replaces an item in the advised collection.

ToArray(AdviceEnumerator<ICollectionDynamicAdvice<T>>)

Copies the advised collection into a new array.