I need to run some code in Visual Basic that is the equivalent to this in C#:
for(var item in removeRows)
{
two.ImportRow(item);
}
I know that the closest you can come to declaring “var” in VB is basically
Dim something =
However, how would you do this in a foreach loop?
You would just use:
The
As datatypespecification in VB is optional. See For Each documentation for details.