Whose Error Is It?
C# printed this
error CS0103: The name 'foo' does not exist in the current context
What it meansThe compiler cannot find any variable, method, or type named foo that is visible from the line where you used it.
The first thing to checkCheck for a typo, a variable declared inside a different block or scope, or a missing using directive or project reference for that namespace.