PostSharpAPI ReferencePost­Sharp.​Patterns.​Recording.​OperationsCollection­Operation<T>
Open sandboxFocus

CollectionOperation<T> Class

Base class for operations on an AdvisableCollection<T>.

Namespace: PostSharp.Patterns.Recording.Operations
Assembly: PostSharp.Patterns.Model.dll
Syntax
public abstract class CollectionOperation<T> : Operation, ICollectionOperation, IOperationDescriptor
Type 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.

Explicit Interface Implementations

Name Description
ICollectionOperation.Collection

Gets the collection on which the operation was performed.

ICollectionOperation.NewItem

Gets the item after the operation.

ICollectionOperation.OldItem

Gets the item before the operation.