PostSharp 6.8 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Collections.​Advices Namespace / Dictionary­Dynamic­Advice(TKey, TValue) Class / Dictionary­Dynamic­Advice(TKey, TValue) Methods / Dictionary­Dynamic­Advice(TKey, TValue).​Set­Item Method

DictionaryDynamicAdvice<TKey, TValue>.SetItem Method

Replaces an item with another one in the dictionary.

Namespace:  PostSharp.Patterns.Collections.Advices
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.8.6.0 (6.8.6.0)
Syntax
C#
public virtual void SetItem(
	TKey key,
	TValue value,
	TValue oldValue,
	AdviceEnumerator<IDictionaryDynamicAdvice<TKey, TValue>> nextAdvices
)

Parameters

key
Type: TKey
value
Type: TValue
oldValue
Type: TValue
nextAdvices
Type: PostSharp.Patterns.DynamicAdvising.AdviceEnumerator<IDictionaryDynamicAdvice<TKey, TValue>>

Implements

IDictionaryDynamicAdvice<TKey, TValue>.SetItem(TKey, TValue, TValue, AdviceEnumerator<IDictionaryDynamicAdvice<TKey, TValue>>)
See Also