OperationCollection Class |
Read-only collection of operations (Operation). The class is exposed on the UndoOperations
and RedoOperations properties.
Namespace: PostSharp.Patterns.Recording
Assembly: PostSharp.Patterns.Model (in PostSharp.Patterns.Model.dll) Version: 6.10.10.0 (6.10.10.0)
C#
public sealed class OperationCollection : ICollection<Operation>, IEnumerable<Operation>, IEnumerable, INotifyPropertyChanged, INotifyCollectionChanged
The OperationCollection type exposes the following members.
Name | Description | |
---|---|---|
Count | Gets the number of elements contained in the ICollection<T>. | |
IsReadOnly | Gets a value indicating whether the ICollection<T> is read-only. |
Name | Description | |
---|---|---|
CopyTo | ||
GetEnumerator | Returns an enumerator that iterates through the collection. | |
Trim(Int32) |
Trims the current collection to a given maximal number of operations.
| |
Trim(RestorePoint) |
Trims the current collection to a specified RestorePoint.
|
Name | Description | |
---|---|---|
CollectionChanged | Occurs when the collection changes. | |
PropertyChanged |
Event raised when the value of a property of the current object changes.
|
Name | Description | |
---|---|---|
ToAdvisableCollection<Operation> |
Converts an IEnumerable<T> into an AdvisableCollection<T>.
(Defined by Extensions.) | |
ToAdvisableDictionary<Operation, TKey, TValue> |
Converts an IEnumerable<T> into a AdvisableDictionary<TKey, TValue> given a method returning the item key and a method returning the item value.
(Defined by Extensions.) | |
ToAdvisableHashSet<Operation> |
Converts an IEnumerable<T> into an AdvisableHashSet<T>.
(Defined by Extensions.) |
Additionally to traditional collection members, this class exposes the Trim(Int32) method, which allows to trim the collection of UndoOperations or RedoOperations.