PostSharpAPI ReferencePost­Sharp.​Patterns.​RecordingOperation­Collection
Open sandboxFocus

OperationCollection Class

Read-only collection of operations (Operation). The class is exposed on the UndoOperations and RedoOperations properties.

Inheritance
OperationCollection
Namespace: PostSharp.Patterns.Recording
Assembly: PostSharp.Patterns.Model.dll
Syntax
public sealed class OperationCollection : Object
Remarks

Additionally to traditional collection members, this class exposes the Trim(Int32) method, which allows to trim the collection of UndoOperations or RedoOperations.

Properties

Name Description
Count
IsReadOnly

Methods

Name Description
CopyTo(Operation[], Int32)
GetEnumerator()
Trim(RestorePoint)

Trims the current collection to a specified RestorePoint.

Trim(Int32)

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.