PostSharpAPI ReferencePost­Sharp.​Patterns.​Recording.​OperationsClear­Collection­Operation<T>
Open sandboxFocus

ClearCollectionOperation<T> Class

Represents the Clear() operation.

Inheritance
ClearCollectionOperation<T>
Namespace: PostSharp.Patterns.Recording.Operations
Assembly: PostSharp.Patterns.Model.dll
Syntax
public sealed class ClearCollectionOperation<T> : CollectionOperation<T>, ICollectionOperation, IOperationDescriptor
Type Parameters
Name Description
T

Type of items in the collection.

Properties

Name Description
OldItems

Gets the items that were in the collection before it was cleared.

OperationKind

Gets the kind of operation.

Methods

Name Description
Redo(ReplayContext)

Redo the current operation.

Undo(ReplayContext)

Undo the current operation.