KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is there another way to write something like this: if (a == x || a == y || a == z) One way that I found is doing it like this: if( new [] {x,y,z}.Contains(a)) Are there other good ways?
Tags (comma-separated)
Save Edits
Cancel