Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Recording.​Operations Namespace / Collection­Operation(T) Class

CollectionOperation<T> Class

Base class for operations on an AdvisableCollection<T>.
Inheritance Hierarchy

Namespace:  PostSharp.Patterns.Recording.Operations
Assembly:  PostSharp.Patterns.Model (in PostSharp.Patterns.Model.dll) Version: (
public abstract class CollectionOperation<T> : Operation, 
	ICollectionOperation, IOperationDescriptor

Type Parameters

Type of collection items.

The CollectionOperation<T> type exposes the following members.

Public propertyCollection
Gets the collection on which the operation was performed.
Public propertyName
Gets the operation name.
(Inherited from Operation.)
Public propertyNewIndex
Gets the index after the operation.
Public propertyNewItem
Gets the item before the operation.
Public propertyOldIndex
Gets the index before the operation.
Public propertyOldItem
Gets the item after the operation.
Public propertyOperationDescriptor
Gets the IOperationDescriptor, which is used by the OperationFormatter to produce a human-readable description of the current operation.
(Inherited from Operation.)
Public propertyOperationKind
Gets the kind of operation.
(Inherited from Operation.)
Protected methodGetMergeStatus
Determines how a given Operation can be merged with the current Operation.
(Inherited from Operation.)
Protected methodMerge
Merges a given Operation into the current Operation.
(Inherited from Operation.)
Protected methodRedo
Redo the current operation.
(Inherited from Operation.)
Protected methodUndo
Undo the current operation.
(Inherited from Operation.)
Public methodVisitAffectedObjects
Executes a given action on all recordable objects involved with the current Operation.
(Overrides Operation.VisitAffectedObjects(Action<Object>).)
Extension Methods
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also
Inheritance Hierarchy