I have the following code in C#
if ((l = d.Length) > 0)
{
for (i = 0; i < l; i++)
{
Console.WriteLine(d[i]["id"]);
}
}
and it puts a little red highlight under l and i and when I hover the mouse over it, it says
The name i does not exist in the current context.
Why is that?
you haven’t declared i properly it should be int i