C
csharpula csharp
Hello,
I am trying to iterate through list:
foreach (classA objectA in listA)
{
//if there is no objectA with specific name in list A then:
listA.add(objectA)
}
But it seems like this is an exception to modify the collection that I
am iterationg through. How to solve this?
Thank you!
I am trying to iterate through list:
foreach (classA objectA in listA)
{
//if there is no objectA with specific name in list A then:
listA.add(objectA)
}
But it seems like this is an exception to modify the collection that I
am iterationg through. How to solve this?
Thank you!