KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is there a shorter way of testing the following: if (!((a == b) && (a == c) && (a == d) && (a == e) && (a == f))) I ended up writing a method that lets me do this if (!AllEqual(new[] { a, b, c, d, e, f })) That feels nicer and is a lot more readable, but I'm wondering if there is something in the framework that does this already?
Tags (comma-separated)
Save Edits
Cancel