Extensions..::..AddOrSet<(Of <(<'TKey, TValue>)>)> Method
Dictionary helper that allows for idempotent updates. You don't need to care whether or not
this item is already in the collection in order to update it.
Namespace:
AkkaAssembly: Akka (in Akka.dll)
Syntax
public static void AddOrSet<TKey, TValue>( this IDictionary<TKey, TValue> hash, TKey key, TValue value )
<ExtensionAttribute> _ Public Shared Sub AddOrSet(Of TKey, TValue) ( _ hash As IDictionary(Of TKey, TValue), _ key As TKey, _ value As TValue _ )
[ExtensionAttribute] public: generic<typename TKey, typename TValue> static void AddOrSet( IDictionary<TKey, TValue>^ hash, TKey key, TValue value )
Type Parameters
- TKey
- TValue