C# Null propagating operator / Conditional access expression & if blocks
It won’t work this way. You can just skip the explanation and see the code below 🙂 As you know ?. operator will return null if a child member is null. But what happens if we try to get a non-nullable member, like the Any() method, that returns bool? The answer is that the compiler … Read more