Linq List problems checking null

Change your logic

(grp2.Select(y => y.SubscriptionId) == null)

to

grp2.Where(y => y.SubscriptionId == null).Count() > 0

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top