© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
10 replies
Karto

❔ How does the main method work?

I've only ever used c# in unity, so i've never worked outside the context of making games, so using the main method is very new to me. Since the main method needs to be static anything i use in it requires being static. How do you navigate around this?
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

Why does the second method not work.
C#CC# / help
4y ago
how to write method outside the main method in the program class?
C#CC# / help
2y ago
❔ ✅ How to store a method's variable to main method?
C#CC# / help
3y ago