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.
Asked
Active
Viewed 35 times
0
-
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: https://stackoverflow.com/questions/11960732/understanding-the-null-coalescing-operator – avariant Mar 27 '19 at 21:22