Skip to content

Overload_CodeJam_Collections_DictionaryExtensions_AddOrUpdate

andrewvk edited this page Mar 22, 2016 · 4 revisions

DictionaryExtensions.AddOrUpdate Method

[This is preliminary documentation and is subject to change.]

Overload List

 

Name Description
Public methodStatic member 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.
Public methodStatic member 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.
  Back to Top

See Also

Reference

DictionaryExtensions Class
CodeJam.Collections Namespace

Clone this wiki locally