How do I break out of a foreach loop in C# if one of the elements meets the requirement?
foreach
For example:
foreach(string s in sList){
how about:
return(sList.Contains("ok"));
That should do the trick if all you want to do is check for an "ok" and return the answer ...