Skip to content

Overload_CodeJam_Collections_DictionaryExtensions_GetOrAdd

Andrew Koryavchenko edited this page Jul 4, 2017 · 4 revisions

DictionaryExtensions.GetOrAdd Method

Overload List

 

Name Description
Public methodStatic member GetOrAdd(TKey, TValue)(IDictionary(TKey, TValue), TKey) Adds a key/value pair to the IDictionary(TKey, TValue) if the key does not already exist.
Public methodStatic member GetOrAdd(TKey, TValue)(IDictionary(TKey, TValue), TKey, Func(TKey, TValue)) Adds a key/value pair to the IDictionary(TKey, TValue) if the key does not already exist.
Public methodStatic member GetOrAdd(TKey, TValue)(IDictionary(TKey, TValue), TKey, TValue) Adds a key/value pair to the IDictionary(TKey, TValue) if the key does not already exist.
  Back to Top

See Also

Reference

DictionaryExtensions Class
CodeJam.Collections Namespace

Clone this wiki locally