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

OperationCollection.Trim Method

Trim(Int32)

Trims the current collection to a given maximal number of operations.

Declaration
public void Trim(int count)
Parameters
Type Name Description
Int32 count

The maximal number of operations to keep in the collection.

Remarks
note

The UndoOperations collection is automatically trimmed to the value of MaximumOperationsCount property.

Trim(RestorePoint)

Trims the current collection to a specified RestorePoint.

Declaration
public void Trim(RestorePoint restorePoint)
Parameters
Type Name Description
RestorePoint restorePoint

A token to the RestorePoint to which the current collection should be trimmed.