I suggest you ...

Dictionary get item lambda

Dictionary<string, T> some = new Dictionary<string, T>();
var tmp = some["some_key"]?.SomeField ?? string.Empty;

15 votes
Vote
Sign in
(thinking…)
Password icon
Signed in as (Sign out)
You have left! (?) (thinking…)
Maxim shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

0 comments

Sign in
(thinking…)
Password icon
Signed in as (Sign out)
Submitting...

Feedback and Knowledge Base