PostSharp 4.3 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Recording Namespace / Operation­Collection Class / Operation­Collection Methods
OperationCollection Methods

The OperationCollection type exposes the following members.

Methods
  Name Description
Public method CopyTo
Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.
Public method GetEnumerator
Returns an enumerator that iterates through the collection.
Public method Trim(Int32)
Trims the current collection to a given maximal number of operations.
Public method Trim(RestorePoint)
Trims the current collection to a specified RestorePoint.
Extension Methods
  Name Description
Public Extension Method QueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
Public Extension Method ToAdvisableCollection<Operation>
Converts an IEnumerable<T> into an AdvisableCollection<T>.
(Defined by Extensions.)
Public Extension Method ToAdvisableDictionary<Operation, TKey, TValue>
Converts an IEnumerable<T> into a AdvisableDictionary<TKey, TValue> given a method returning the item key and a method returning the item value.
(Defined by Extensions.)
Public Extension Method ToAdvisableHashSet<Operation>
Converts an IEnumerable<T> into an AdvisableHashSet<T>.
(Defined by Extensions.)
See Also