Summary
Registers the `value` in the `dictionary` using the `key`, replacing any previous value.
Syntax
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void Set<TKey, TValue>(this Dictionary<TKey, TValue> dictionary, TKey key, TValue value)
This is identical to setting dictionary[key] = value;
except the syntax matches dictionary.Add(key, value);.
Attributes
| Type |
Description |
| MethodImplAttribute |
|
Type Parameters
| Name |
Description |
| TKey |
|
| TValue |
|
Parameters
| Name |
Type |
Description |
| dictionary |
Dictionary<TKey, TValue> |
|
| key |
TKey |
|
| value |
TValue |
|
Return Value