Monday, May 11, 2015

C# Safe Navigation Operator ?.

Read code to understand:

var g1 = parent?.child?.child?.child;
if (g1 != null) // TODO


http://blogs.msdn.com/b/jerrynixon/archive/2014/02/26/at-last-c-is-getting-sometimes-called-the-safe-navigation-operator.aspx