Implementation for Dictionary.TryAdd (dotnet/coreclr#9923)
authorJames Ko <jamesqko@gmail.com>
Mon, 6 Mar 2017 18:44:34 +0000 (13:44 -0500)
committerDan Moseley <danmose@microsoft.com>
Mon, 6 Mar 2017 18:44:34 +0000 (10:44 -0800)
commitfb5115f35bff671b7e0cc7ecd6e7b74ffc960efe
treeb4a35ea35c595b060a99b51cb21e1188224089b1
parent4abdb16b9097678763f18bb39fb6f2c32a263b48
Implementation for Dictionary.TryAdd (dotnet/coreclr#9923)

* Add Dictionary.TryAdd

* Fix the conflicts for real

* Remove branch from Add(TKey, TValue)

* Tweak naming

* Remove a slow assert

* PR feedback

Commit migrated from https://github.com/dotnet/coreclr/commit/aeef0d20caceb33c80312fdf40ed242139cdd003
src/coreclr/src/mscorlib/src/System/Collections/Generic/Dictionary.cs