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

Class OperationCollection

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

Properties

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.

Methods

Name Description
CopyTo(Operation[], Int32)

Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.

GetEnumerator()

Returns an enumerator that iterates through the collection.

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

Occurs when the collection changes.

PropertyChanged

Event raised when the value of a property of the current object changes.