PostSharp 6.9 / / 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
  NameDescription
Public methodCopyTo
Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
Public methodTrim(Int32)
Trims the current collection to a given maximal number of operations.
Public methodTrim(RestorePoint)
Trims the current collection to a specified RestorePoint.
Extension Methods
  NameDescription
Public Extension MethodToAdvisableCollection<Operation>
Converts an IEnumerable<T> into an AdvisableCollection<T>.
(Defined by Extensions.)
Public Extension MethodToAdvisableDictionary<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 MethodToAdvisableHashSet<Operation>
Converts an IEnumerable<T> into an AdvisableHashSet<T>.
(Defined by Extensions.)
See Also