G
Guest
How would I skip an item in a foreach loop without breaking out of the loop
altogether?
foreach(SearchResult resCol1 in resCol)
{
string myString = resCol1.Properties["name"][0].ToString();
if (myString.IndexOf("badstuff") > 0)
//go to next item
…
}
altogether?
foreach(SearchResult resCol1 in resCol)
{
string myString = resCol1.Properties["name"][0].ToString();
if (myString.IndexOf("badstuff") > 0)
//go to next item
…
}