PostSharp.ILAPI 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
System.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.