PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Collections.​Advices Namespace / Collection­Dynamic­Advice(T) Class / Collection­Dynamic­Advice(T) Methods

CollectionDynamicAdvice<T> Methods

The CollectionDynamicAdvice<T> generic type exposes the following members.

Public methodClearItems
Empties the advised collection.
Public methodDispose
Disposes the current advice. // We don't use IDisposable so that advises are not be cast to IDisposable by default.
(Inherited from DynamicAdvice.)
Public methodInitialize
Initializes the current advice.
(Inherited from DynamicAdvice.)
Public methodInsertItem
Inserts an item into the advised collection.
Public methodInsertMany
Inserts several items to the advised collection.
Public methodIsReadOnly
Determines whether the advised collection is read-only.
Public methodIsSynchronized
Determines whether the advised collection is synchronized (i.e. thread-safe).
Public methodMoveItem
Moves an item of the advised collection from an old index to a new index.
Public methodQueryInterface<TInterface> (Inherited from DynamicAdvice.)
Public methodRemoveItem
Removes an item from the advised collection.
Public methodRemoveMany
Removes several items from the advised collection.
Public methodSetItem
Replaces an item in the advised collection.
Public methodToArray
Copies the advised collection into a new array.
See Also