Refreshing C#

I have to refresh my C# for a project. I am using Visual Studio Community 2022 and installed the MAUI package on a Windows machine. I'll quickly run through a course on MS Learn and will see after that. Here are my notes.

First surprise.

I started a new console app with C#. I was surprised to see only
Console.WriteLine("Hello, World!");
instead of the complete template with namespace, class, using etc. Here is the explanation for why it is that way. For now, we will revert to the old and familiar program style, but we will revisit this change later to explore it further. Re-created the project and this time, I checked the "Do not use top-level statements" option in the Additional information section. There were no using directives, but at least the general structure looked familiar.
//   commenting a line/portion of line.
/* */   multi-line comment
.   member access operator
;   statement terminator, required