Null-conditional operator and !=
问题 With the introduction of Null-Conditional Operators in C#, for the following evaluation, if (instance != null && instance.Val != 0) If I rewrite it this way, if (instance?.Val != 0) it will be evaluated to true if instance is a null reference; It behaves like if (instance == null || instance.Val != 0) So what is the right way to rewrite the evaluation using this new syntax? Edit: instance is a field of a big object which is deserialized from JSON. There are quite a few pieces of code like