>static bool Inlist(string s, params string[] list) >{ > for (int i = list.Length; --i >= 0; ) > if (s.CompareTo(list[i]) == 0) > return true; > return false; >} >Not really a replacement for INLIST() but if you're passing an array as a parameter why not just use list.Contains(s) ?