I have the following List:
1: true;
2: false;
2: true;
3: false;
3: false;
3: false;
I want a LINQ query to get a collection as the following:
key, OR operation between the grouped items, for example:
2: false | true = true
The result must be:
1: true
2: true
3: false
Thanks in advance
Note you could also use
Anyto do the aggregate, with the advantage that it will short-circuit sooner: