Steadhaven
Explore posts from serversMmfad
•Created by Steadhaven on 8/31/2024 in #questions-and-advice
shoes for blue shorts/white t shirt
3 replies
No Main and class confusion in newer C# versions
I am confused about the newer C# versions... When I make a console app, it just starts like so:
As you see, theres no class or Main method. In Java, and old C# if I am correct, we always have to have a class with a main method for our code to run.
However, it seems that newer C# versions doesn't require this. Yet my confusion is:
- OOP is rather valuable in a lot of scenarios, so what do we do without classes?
- Is the Main method just in the first file we create? or where is it? it seems to run without it
52 replies