PostSharpAPI ReferencePost­Sharp.​Patterns.​Recording.​OperationsDictionary­Operation<TKey, TValue>
Open sandboxFocus

DictionaryOperation<TKey, TValue> Class

Base class for operations on an AdvisableDictionary<TKey, TValue>.

Namespace: PostSharp.Patterns.Recording.Operations
Assembly: PostSharp.Patterns.Model.dll
Syntax
public abstract class DictionaryOperation<TKey, TValue> : Operation, IDictionaryOperation, IOperationDescriptor
Type Parameters
Name Description
TKey

Type of keys.

TValue

Type of values.

Properties

Name Description
Dictionary

Gets the collection on which the operation was performed.

Key

Gets the key of the dictionary entry affected by the operation.

NewValue

Gets the value of the dictionary entry after the operation.

OldValue

Gets the value of the dictionary entry before the operation.

Methods

Name Description
VisitAffectedObjects(Action<Object>)

Executes a given action on all recordable objects involved with the current Operation.

Explicit Interface Implementations

Name Description
IDictionaryOperation.Dictionary

Gets the collection on which the operation was performed.

IDictionaryOperation.Key

Gets the key of the dictionary entry affected by the operation.

IDictionaryOperation.NewValue

Gets the value of the dictionary entry after the operation.

IDictionaryOperation.OldValue

Gets the value of the dictionary entry before the operation.