dotnet / website-feedback

This repo is for dot.net feedback including get started tutorial issues from the site.
MIT License
0 stars 1 forks source link

Convert to "program.main" style program #128

Closed Elinjo85 closed 7 months ago

Elinjo85 commented 7 months ago

URL

https://dotnet.microsoft.com/en-us/learn/dotnet/hello-world-tutorial/create

Operating system

macos

More information about your system

Hi, I'm a total beginner at c# and need some help to get me started. I'm also a beginner on mac, so twice as confusing for me!

Skärmavbild 2024-04-23 kl  21 00 30

Should I convert to program.main? Thank you for your support!

Description

Skärmavbild 2024-04-23 kl  21 00 30

dotnet --info

No response

mairaw commented 7 months ago

Hi @Elinjo85, No, you don't need to convert to Program.Main style.

The current template uses what is called top-level statements, which simplifies the code a lot. You can read more about it at https://learn.microsoft.com/en-us/dotnet/csharp/tutorials/top-level-statements.

Let us know if you have more questions.