Operation Class |
Base class for all operations. An operation is any change of state that can be appended to a Recorder
and be therefore involved in an undo/redo operation.

Namespace: PostSharp.Patterns.Recording
Assembly: PostSharp.Patterns.Model (in PostSharp.Patterns.Model.dll) Version: 6.8.6.0 (6.8.6.0)

C#
public abstract class Operation : IOperationDescriptor
The Operation type exposes the following members.

Name | Description | |
---|---|---|
![]() | Operation |
Initializes a new instance of the Operation class.
|

Name | Description | |
---|---|---|
![]() | Name |
Gets the operation name.
|
![]() | OperationDescriptor |
Gets the IOperationDescriptor, which is used by the OperationFormatter to produce a human-readable description
of the current operation.
|
![]() | OperationKind |
Gets the kind of operation.
|

Name | Description | |
---|---|---|
![]() | GetMergeStatus |
Determines how a given Operation can be merged with the current Operation.
|
![]() | Merge |
Merges a given Operation into the current Operation.
|
![]() | Redo |
Redo the current operation.
|
![]() | Undo |
Undo the current operation.
|
![]() | VisitAffectedObjects |
Executes a given action on all recordable objects involved with the current Operation.
|

Reference
Other Resources

System.Object
PostSharp.Patterns.Recording.Operation
PostSharp.Patterns.Recording.Operations.CollectionOperation<T>
PostSharp.Patterns.Recording.Operations.CompositeOperation
PostSharp.Patterns.Recording.Operations.DictionaryOperation<TKey, TValue>
PostSharp.Patterns.Recording.Operations.FieldOperation<T>
PostSharp.Patterns.Recording.Operations.HashSetOperation<T>
PostSharp.Patterns.Recording.Operations.RecorderOperation
PostSharp.Patterns.Recording.RestorePoint
PostSharp.Patterns.Recording.Operation
PostSharp.Patterns.Recording.Operations.CollectionOperation<T>
PostSharp.Patterns.Recording.Operations.CompositeOperation
PostSharp.Patterns.Recording.Operations.DictionaryOperation<TKey, TValue>
PostSharp.Patterns.Recording.Operations.FieldOperation<T>
PostSharp.Patterns.Recording.Operations.HashSetOperation<T>
PostSharp.Patterns.Recording.Operations.RecorderOperation
PostSharp.Patterns.Recording.RestorePoint