| ExtensionsAddOrSetTKey, 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:
Akka.Util.Internal
Assembly:
Akka (in Akka.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax public static void AddOrSet<TKey, TValue>(
this IDictionary<TKey, TValue> hash,
TKey key,
TValue value
)
[<ExtensionAttribute>]
static member AddOrSet :
hash : IDictionary<'TKey, 'TValue> *
key : 'TKey *
value : 'TValue -> unit
Parameters
- hash
- Type: System.Collections.GenericIDictionaryTKey, TValue
TBD - key
- Type: TKey
TBD - value
- Type: TValue
TBD
Type Parameters
- TKey
- TBD
- TValue
- TBD
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IDictionaryTKey,
TValue. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also