I need to check if a sequence has any items satisfying some condition but at the same time NOT all items satisfying the same condition.
For example, for a sequence of 10
You could try this:
var result = mySequence.Select(item => item.SomeStatus == SomeConst) .Distinct().Count() > 1 ? false : true;
Basically I select true or false for each value, get distinct to only get one of each, then count those.
true
false