C
csharpula csharp
Hello,
I am iterating through objects and have the following case:
foreach (classA objectA in classAList)
{
if (classA.count> 0)
{
//now I need to get out of the foreach loop if so,otherwise to keep
iterating
}
}
What is the best way to do it?
Thanks!
I am iterating through objects and have the following case:
foreach (classA objectA in classAList)
{
if (classA.count> 0)
{
//now I need to get out of the foreach loop if so,otherwise to keep
iterating
}
}
What is the best way to do it?
Thanks!