Can I use if clause with Linq where?
var query = someList.Where(a => (someCondition)? a == "something" : true);
so, if 'someCondition' is false, 'Where' will be skipped.
1.4m articles
1.4m replys
5 comments
56.8k users