C# analog for sql in operator

Posted by er-v on Stack Overflow See other posts from Stack Overflow or by er-v
Published on 2010-04-29T13:43:50Z Indexed on 2010/04/29 13:47 UTC
Read the original article Hit count: 259

Filed under:

There is in operator in SQL

SELECT * FROM MyTable WHERE id IN (1, 2, 3, 4, 5)

Is there similar sintax in C#, I mean

if(variable in (1, 2, 3, 4, 5)){
}

© Stack Overflow or respective owner

Related posts about c#