PostSharp / / API Reference / Post­Sharp.​Patterns.​Recording.​Operations / Dictionary­Operation<TKey, TValue>
Open sandbox

Class DictionaryOperation<TKey, TValue>

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
IDictionaryOperation.Key
IDictionaryOperation.NewValue
IDictionaryOperation.OldValue