-
Notifications
You must be signed in to change notification settings - Fork 36
Overload_CodeJam_Collections_DictionaryExtensions_AddOrUpdate
andrewvk edited this page Mar 22, 2016
·
4 revisions
[This is preliminary documentation and is subject to change.]
Name | Description | |
---|---|---|
![]() ![]() |
AddOrUpdate(TKey, TValue)(IDictionary(TKey, TValue), TKey, Func(TKey, TValue), Func(TKey, TValue, TValue)) | Adds a key/value pair to the IDictionary(TKey, TValue) if the key does not already exist, or updates a key/value pair IDictionary(TKey, TValue) by using the specified function if the key already exists. |
![]() ![]() |
AddOrUpdate(TKey, TValue)(IDictionary(TKey, TValue), TKey, TValue, Func(TKey, TValue, TValue)) | Adds a key/value pair to the IDictionary(TKey, TValue) if the key does not already exist, or updates a key/value pair IDictionary(TKey, TValue) by using the specified function if the key already exists. |