I'm trying to get my head around the Predicate<T>
type and I can understand it when T is anything, except for bool. If you have Predicate<bool>
, I don't see how that can be used.
Can someone tell me if this is a silly thing to do or if it actually serves a purpose?
Predicate<T>
already returns a bool, so then testing a condition on a bool seems a bit pointless... or have I got it wrong?