Created
May 23, 2018 16:29
-
-
Save jpitchardu/c948e181a2c88074c3ebdfdc62181681 to your computer and use it in GitHub Desktop.
Null Coalescence in C#
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SomeClass obj; | |
obj?.prop1?.prop2?.prop3 ?? "SomeDefaultValue"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment