Search
Setup for Free
C
C#
•
3y ago
Blaze
✅ Getting back main function
Recently after updating to CS8
(didnt update in a long time
)
, and creating a console app there is no main function
, how can i get it back
?
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,156
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
S
SinFluxx
•
11/21/23, 4:42 PM
it
's technically not gone anywhere
/ you don
't need it back
, it
's just using
"top level statements
"
- it should have also inserted a comment with a link at the top of the file explaining what they are
?
If not
, here
:
https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/program-structure/top-level-statements
B
Blaze
OP
•
11/21/23, 4:42 PM
it wasnt there
, ty
S
SinFluxx
•
11/21/23, 4:43 PM
It might be because they were introduced a while ago so they
've gotten rid of it now
, not sure
B
Blaze
Recently after updating to CS8 (didnt update in a long time), and creating a con...
P
PixxelKick
•
11/21/23, 6:24 PM
What do you need it for
?
You can get the passed in args via the
args
args
variable you can still access
Similar Threads
❔ main function
C
C# / help
3y ago
✅ Passing back to the main thread
C
C# / help
11mo ago
why is there "string[] args" inside the main function parentheses?
C
C# / help
2y ago
Composing a validation function using functional concepts
C
C# / help
4y ago