VB.NET/C# Comparison Operator for to test for set membership - like the IN Operator for SQL...
Posted
by Albert
on Stack Overflow
See other posts from Stack Overflow
or by Albert
Published on 2010-05-03T18:33:30Z
Indexed on
2010/05/03
18:38 UTC
Read the original article
Hit count: 319
so in SQL you can do something like:
WHERE title IN('title1','title2','title3')
to test for set membership. how can I do this in VB.NET/C#.NET?
Example:
IF textMyTitle.text IN ("title1","title2","title 3") THEN
'Take Action
End If
Obviously the IN part of that statement doesn't work...whats the logical equivalent in .NET?
© Stack Overflow or respective owner