In C#, instead of doing if(index == 7 || index == 8), is there a way to combine them? I\'m thinking of something like if(index == (7, 8)).
if(index == 7 || index == 8)
if(index == (7, 8))
There is no way, in the current C# syntax set, to combine multiple right-hand-side operands to be passed to a single binary operator to the best of my knowledge.