Is there a shorter way of writing something like this:
if(x==1 || x==2 || x==3) // do something
Wha
int x = 1; if((new List {1, 2, 3}).Contains(x)) { }