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

FieldOperation<T> Class

Encapsulates a modification of a field value.

Inheritance
FieldOperation<T>
Namespace: PostSharp.Patterns.Recording.Operations
Assembly: PostSharp.Patterns.Model.dll
Syntax
public sealed class FieldOperation<T> : Operation, IOperationDescriptor, IFieldOperation
Type Parameters
Name Description
T

Properties

Name Description
Location

Gets the LocationInfo of the modified field.

OperationKind

Gets the kind of operation.

Target

Gets the this instance.

Methods

Name Description
GetMergeStatus(Operation)

Determines how a given Operation can be merged with the current Operation.

Merge(Operation)

Merges a given Operation into the current Operation.

Redo(ReplayContext)

Redo the current operation.

Undo(ReplayContext)

Undo the current operation.

VisitAffectedObjects(Action<Object>)

Executes a given action on all recordable objects involved with the current Operation.

Explicit Interface Implementations

Name Description
IFieldOperation.NewValue

Gets the value of the field after the operation.

IFieldOperation.OldValue

Gets the value of the field before the operation.