I have a collection of objects (IQueryable). Each object has various properties, some string some datetime, I’m not concerned about the datetime properties. How can I iterate through each object and return a collection of those objects that maybe have null values in one or more fields
For simplicity, consider a collection of Employees
Each employee may have two properties:
FirstName (string)
LastName (string)
I’d like to have a method that could iterate through all employees in the employee collection and return a collection of employees that either have first name or last name missing, i.e null or an empty string.
using .NET 3.5 with C#
1 Answer