The ?. operator in foreach will not protect from NullReferenceException
▻https://hownot2code.com/2021/10/15/the-operator-in-foreach-will-not-protect-from-nullreferenceexception
Do you like the ?. operator? Well, who doesn’t? Many people like these concise null checks. However, today’s article shows that the ?. operator may be tricky sometimes. That is, it can create an illusion of safety when used in the foreach loop. Let’s start with a small task. Take a look at the following … Continue reading The ?. operator in foreach will not protect from NullReferenceException
►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G