I have a list of objects. Is there a way to iterate over the list and check whether any of their properties is not defined?
I have tried something like
list.FindAll(p => p.property == null);
but as a desired property is double I am getting a warning, that the expression will always evaluate to false.
Because
double
can't be null, you can usedouble?
.Then, continue your logic, it's
null
means it's not defined