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

SetDictionaryItemOperation<TKey, TValue> Class

Represents the operation of setting a value in an AdvisableDictionary<TKey, TValue>.

Inheritance
System.Object
DictionaryOperation<TKey, TValue>
SetDictionaryItemOperation<TKey, TValue>
Namespace: PostSharp.Patterns.Recording.Operations
Assembly: PostSharp.Patterns.Model.dll
Syntax
public sealed class SetDictionaryItemOperation<TKey, TValue> : DictionaryOperation<TKey, TValue>, IDictionaryOperation, IOperationDescriptor
Type Parameters
Name Description
TKey

Type of dictionary keys.

TValue

Type of dictionary values.

Properties

Name Description
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.

OperationKind

Gets the kind of operation.

Methods

Name Description
Redo(ReplayContext)

Redo the current operation.

Undo(ReplayContext)

Undo the current operation.