Base class for operations on an AdvisableCollection<T>.
Inheritance
CollectionOperation<T>
Namespace: PostSharp.Patterns.Recording.Operations
Assembly: PostSharp.Patterns.Model.dll
Syntax
[Obsolete("[Recordable] aspect and its components are deprecated and will be removed in a future version.", false)]
public abstract class CollectionOperation<T> : Operation, ICollectionOperation, IOperationDescriptorType Parameters
| Name | Description |
|---|---|
| T | Type of collection items. |
Properties
| Name | Description |
|---|---|
| Collection | Gets the collection on which the operation was performed. |
| NewIndex | Gets the index after the operation. |
| NewItem | Gets the item before the operation. |
| OldIndex | Gets the index before the operation. |
| OldItem | Gets the item after the operation. |
Methods
| Name | Description |
|---|---|
| VisitAffectedObjects(Action<object>) | Executes a given action on all recordable objects involved with the current Operation. |