CollectionOperation<T> Class |
Base class for operations on an AdvisableCollection<T>.
System.Object
PostSharp.Patterns.Recording.Operation
PostSharp.Patterns.Recording.Operations.CollectionOperation<T>
More...
PostSharp.Patterns.Recording.Operation
PostSharp.Patterns.Recording.Operations.CollectionOperation<T>
More...
Namespace: PostSharp.Patterns.Recording.Operations
Assembly: PostSharp.Patterns.Model (in PostSharp.Patterns.Model.dll) Version: 6.8.6.0 (6.8.6.0)
C#
public abstract class CollectionOperation<T> : Operation, ICollectionOperation, IOperationDescriptor
Type Parameters
- T
- Type of collection items.
The CollectionOperation<T> type exposes the following members.
Name | Description | |
---|---|---|
Collection |
Gets the collection on which the operation was performed.
| |
Name |
Gets the operation name.
(Inherited from Operation.) | |
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.
| |
OperationDescriptor |
Gets the IOperationDescriptor, which is used by the OperationFormatter to produce a human-readable description
of the current operation.
(Inherited from Operation.) | |
OperationKind |
Gets the kind of operation.
(Inherited from Operation.) |
Name | Description | |
---|---|---|
GetMergeStatus | (Inherited from Operation.) | |
Merge | (Inherited from Operation.) | |
Redo |
Redo the current operation.
(Inherited from Operation.) | |
Undo |
Undo the current operation.
(Inherited from Operation.) | |
VisitAffectedObjects |
Executes a given action on all recordable objects involved with the current Operation.
(Overrides Operation.VisitAffectedObjects(Action<Object>).) |
Reference
Other Resources
System.Object
PostSharp.Patterns.Recording.Operation
PostSharp.Patterns.Recording.Operations.CollectionOperation<T>
PostSharp.Patterns.Recording.Operations.AddCollectionItemOperation<T>
PostSharp.Patterns.Recording.Operations.AddCollectionRangeOperation<T>
PostSharp.Patterns.Recording.Operations.ClearCollectionOperation<T>
PostSharp.Patterns.Recording.Operations.MoveCollectionItemOperation<T>
PostSharp.Patterns.Recording.Operations.RemoveCollectionItemOperation<T>
PostSharp.Patterns.Recording.Operations.RemoveCollectionRangeOperation<T>
PostSharp.Patterns.Recording.Operations.SetCollectionItemOperation<T>
PostSharp.Patterns.Recording.Operation
PostSharp.Patterns.Recording.Operations.CollectionOperation<T>
PostSharp.Patterns.Recording.Operations.AddCollectionItemOperation<T>
PostSharp.Patterns.Recording.Operations.AddCollectionRangeOperation<T>
PostSharp.Patterns.Recording.Operations.ClearCollectionOperation<T>
PostSharp.Patterns.Recording.Operations.MoveCollectionItemOperation<T>
PostSharp.Patterns.Recording.Operations.RemoveCollectionItemOperation<T>
PostSharp.Patterns.Recording.Operations.RemoveCollectionRangeOperation<T>
PostSharp.Patterns.Recording.Operations.SetCollectionItemOperation<T>