Is there way to check whether the particular class members are null ?
I have a class with N number of properties (members). I got to create many Objects for the class and may assign the values for those properties.. I am using List to store all the objects.
Now, I want to check whether the object in particular index from the list has any of its property as null or not set ? Can this be accomplished without using loop or checking each property manually ?
Thanks in advance..
Assume you have a list of items of type
A,listA. Below is a LINQ expression that will find all items in the list that have any property set tonull: