IN ()?

  • Thread starter Thread starter John Spiegel
  • Start date Start date
J

John Spiegel

Hi all,

Is there an equivalent in C# to the SQL IN() function?

TIA,

John
 
It depend what you want to do: you can fill a Dictionary and call a
Dictionary.Contains("text to find")
 
Hey Freddy,

Thanks for the idea. In this case, I'm just looking for the shortcut
version of:

if (MyDay == DayOfWeek.Saturday || MyDay == DayOfWeek.Sunday)

like

if (MyDay in(DayOfWeek.Saturday, DayOfWeek.Sunday))

Not a big deal, just wondering if I was missing any such feature.

- John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

SqlParameter to SQL declare representation 4
LSP to C# 0
Good morning 5
LoadPicture command 1
dbEngine.CreateWorkspace 1
DDE 1
Electronics gurus? 6
Equivalent for VB6 2

Back
Top