You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SortedList<TKey,TValue>, IDictionary.this[object key] throws ArgumentException when the key is not compatible with TKey
On Desktop ArgumentNullException is thrown. ArgumentNullException is incorrect, as key is not null, ArgumentException is more suited. This is a behavior change, filing issue to track on what we want to do with these differences.
karelz
changed the title
SortedList indexer implementation of Idictionary throws ArgumentNullException in Desktop
SortedList indexer implementation of IDictionary throws ArgumentNullException in Desktop
Sep 23, 2016
SortedList<TKey,TValue>
,IDictionary.this[object key]
throws ArgumentException when the key is not compatible withTKey
On Desktop ArgumentNullException is thrown. ArgumentNullException is incorrect, as key is not null, ArgumentException is more suited. This is a behavior change, filing issue to track on what we want to do with these differences.
cc @terrajobst @weshaggard @stephentoub @danmosemsft
The text was updated successfully, but these errors were encountered: