The error mesna exactly what it says: you are using a variable, property, or method name that does not exist in the current context.
It may have gone out of scope by the time you use it:
while (a < b)
{
int c = Foo(a);
a++;
}
Bar(c);
By the time you call
Bar
,
c
has gone out of scope.
Or it may be that you have misspelled something.
Or perhaps you are missing a
using
statement.
We can't tell: we can't compile your code in isolation and get the same result you do.
So double click the error message and VS will take you directly to the error line. Look for a name that is underlined in red and then try to find it's definition, or where you think it is defined.
Sorry, but we can't do that for you!