Softlogger
Categories

Coalesce ?? operator in C# 2.0


Operator ?? , that was introduced in the .NET 2.0, takes first place in my top used C# idioms list a long time, but unfortunately it is rarely used in projects I’ve participated. Therefore these snippets could be found in production code very often: public string Caption { get { return ViewState [ "Caption" ]

Filed under: CSharp  |    On : 2008 Jan 14  |  From: Dmytro Shteflyuks Home   | related Posts

Similar Posts



Most Popular

Archives

  • 2008
  • 2007
  • 2006
  • 2005
  • 2004
  • 2003