> well to do anything new in a C# project one typically ends up making a class inside a new namespace (...)

You don't need to. A few years ago, C# introduced top-level statements. They were introduced in 2020, I think.

https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals...