I have two collection(array list)
foreach (string templine1 in arrline1)//arrline1 is the first collection
{
int counti = 0
foreach (string templine1 in arrline1)//arrline2 is the second collection
{
int countj = 0
}
arrline1.RemoveAt(countj);
arrline1.RemoveAt(counti);
}
But giving error [B]Cannot Modify Collection[/B]
I am spliting the line from two collection
And in inner foreach loop i am checking the two columns of both line
If equal doing some processing and writing to another file
and i want to delete this both line
As Both the file may contain more data and to avoid the slow processing
I want to delete the two lines from the collection