>static void doit() >{ > bool il = Inlist("001", "001", "002", "003"); > Console.WriteLine("Inlist: " + il); >} >static bool Inlist(string s, params string[] list) >{ > return list.Contains(s); >} >