IN ()?

  • Thread starter Thread starter John Spiegel
  • Start date Start date
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
 
Back
Top