The null condition statement is for conditional accessnull
, but this is not the problem you are facing.
. null FirstOrDefault
:
int? first = customers.FirstOrDefault()?.Orders.Count();
, , , FirstOrDefault
null
, .
: w.b, , , ElementAtOrDefault
FirstOrDefault