J John Spiegel Feb 9, 2005 #1 Hi all, Is there an equivalent in C# to the SQL IN() function? TIA, John
G Guest Feb 10, 2005 #2 It depend what you want to do: you can fill a Dictionary and call a Dictionary.Contains("text to find")
It depend what you want to do: you can fill a Dictionary and call a Dictionary.Contains("text to find")
J John Spiegel Feb 10, 2005 #3 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
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