© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
27 replies
inexQ

❔ The name number does not exist in the current context

I'm new at C#, and i had a problem with this code:
            for(int number = 1000; number < 0; number - 7)
            Console.WriteLine("{0} - 7 = ", number);
            for(int number = 1000; number < 0; number - 7)
            Console.WriteLine("{0} - 7 = ", number);

Error - The name "number" does not exist in the current context
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Name does not exist in the current context
C#CC# / help
2y ago
❔ Name "PostsService" does not exist in the current context
C#CC# / help
4y ago
✅ The name does not exist in current context. (forms)
C#CC# / help
4y ago
the name text does not exist in the current context
C#CC# / help
4y ago