Use System.Array.IndexOf(or System.Array.BinarySearch, depending on the
context).
Example:
public static bool ArrayContains ( string [] array, string value )
{
return System.Array.IndexOf(array, value) > -1;
}
--
Regards,
Dennis JD Myrén
Oslo Kodebureau
"Jacek Jurkowski" <jj********@datacomp.szczecin.pl> wrote in message
news:eS**************@TK2MSFTNGP10.phx.gbl...
String[] s = new String[]{"a","b","c","d"};
What is the simpliest way to check if s
contains value "c"?