I just started learning LINQ and then just stuck on an example statement provided in the tutorial (Please not that I am working with C# .Net Framework). The statement
arr?.Count(w => w != null) > 0
returns True
only if their is at-least one none-null element in the arr
(array or list). But what is the ?
operator doing there? Is this another form or ternary operator or something else? Please share your precious knowledge on this point. I shall be glad and thankful to read good answers from you.
Note: I tried removing the ?
operator in the statement but could not find any difference.