The Null-Conditional Operator ?.

Read a property, call a method or get an array item from something that may be null with ?. and ?[], which give null instead of stopping the program, and add ?? for a stand-in.

By

Updated

Cheat sheet: The Null-Conditional Operator ?.
Category
C#
Level
Apprentice
Tags
c-sharp, Null-Coalescing Operator, Null-Conditional Operator, NullReferenceException