0

Recently I have encountered "??" and "?." operators in C#. I wonder if someone could tell me how these two operators work and what are their main use cases and possible differences? Any guide or help appreciated in advance.

1
  • 1
    '??' is called the "null coalescing operator". There are a lot of posts about it here on SO. I recommend just entering it into the search bar. There is a good post for it here: stackoverflow.com/questions/11960732/… Commented Mar 27, 2019 at 21:22

1 Answer 1

2

?? null-coalescing operator

?. and ?[] null-conditional operators

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.