I have a List<MyList> objects.
MyList also has several lists in it and can be called List<Defect> .
List<Defect> may contain several defects, one or more of which may be empty.
How to return the number of MyList elements, where MyList.Defects contains a null object?
I know I can do foreach and check every element, but is there a LINQ way for this?
source share