In SQL, you can use the following syntax:
SELECT * FROM MY_TABLE WHERE VALUE_1 IN (1, 2, 3)
Is there an equivalent in C#? The IDE seems to
You can do this:
var x = 99; // searched value if (new[] {1,2,3,99}.Contains(x)) { // do something }