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
{{ message }}
Repository navigation
Prefer Dictionary<K, V>.TryGetValue() over guarded indexer access #33798
Activity
jeffhandley commentedon Mar 21, 2020
Estimates:
carlossanlop commentedon Jan 8, 2021
Suggested severity: info
It may be possible to preserve unrelated code inside the
ifstatement as long askeyis used without modifying the dictionary:Avoid triggering if the data is modified before returning:
terrajobst commentedon Feb 4, 2021
Video
CollinAlpert commentedon Feb 7, 2021
I'd like to do this one. @carlossanlop
carlossanlop commentedon Feb 8, 2021
It's yours, @CollinAlpert . Thanks for offering your help!