as long as you're comparing value types or strings you won't have problem doing this, it could be a problem if you're comparing reference type, in that case you want to override the equals and check on the ID
Oh I just red the !Any That's bad, use a .All and invert the conditions
This does not make sense to me. ".Any" returns a bool. How is ".All" a substitute, at all !?
All returns a bool as well
My bad. I assumed it doesn't. In that case, it does sound like a better substitute.
Обсуждают сегодня