PostSharp//API Reference/Post­Sharp.​Patterns.​Recording/Operation­Collection/Trim
Open sandboxFocus

Method Trim

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.

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.