Read-only collection of operations (Operation). The class is exposed on the UndoOperations and RedoOperations properties.
Implements
Namespace: PostSharp.Patterns.Recording
Assembly: PostSharp.Patterns.Model.dll
Syntax
public sealed class OperationCollection : ICollection<Operation>, IEnumerable<Operation>, IEnumerable, INotifyPropertyChanged, INotifyCollectionChanged
Remarks
Additionally to traditional collection members, this class exposes the Trim(int) method, which allows to trim the collection of UndoOperations or RedoOperations.
Properties
Name | Description |
---|---|
Count | |
IsReadOnly |
Methods
Name | Description |
---|---|
CopyTo(Operation[], int) | |
GetEnumerator() | |
Trim(RestorePoint) | Trims the current collection to a specified RestorePoint. |
Trim(int) | Trims the current collection to a given maximal number of operations. |
Events
Name | Description |
---|---|
CollectionChanged | |
PropertyChanged | Event raised when the value of a property of the current object changes. |