Can anybody tell me what is wrong with this code? VS2012 is rejecting the second foreach statement.
I get
"type or namespace name 'grid' could not be found..."
and
"invalid token 'foreach' in class..."
public static void go(DataTable grid)
{
foreach (DataRow row in grid.Rows);
}
foreach (DataColumn col in grid.columns);
}
I get the same error for:
public static void go(DataTable grid)
{
foreach (DataRow row in grid.Rows);
}
foreach (DataColumn col in row.columns);
}
My VS has been crashing periodically (actually, first real "blue screen of death" that I've seen since before Windows XP) and I've had some unusual behaviors like controls disappearing from forms.
So, who is suffering distorted code logic, me or VS?