Is it possible to shorten an OR statement with multiple conditions on the same variable?

Viewed 217

Is there a way of shortening if(a=="bcd" || a=="efg")?

Because the conditions are both on a It would be nice to write something like if(a=="bcd"||"efg") and contract the statement. I know I could write something custom to handle it, but was wondering if there is anything built into C# that would accomplish it?

1 Answers
Related