Welcome to MSDN Blogs Sign in | Join | Help

Mitsu's blog

Discussing topics related to .Net, WPF, C# and Linq

Browse by Tags

All Tags » Extension method
Tip: how to simplify value access from a dictionary ? With an extension method !
I was getting really bored with testing .ContainsKey() at each time I wanted to read a value from a dictionary. Dictionary < string , string > dico; if (dico.ContainsKey( " key " )) value = dico[ " key " ]; else value = " default " ; A incredibly Read More...
Page view tracker