3 ms·
> As others mentioned, there is an implicit class here in play. The same strategy is also followed by C# with their top-level statements. And yes, it's syntact
by motorest 2y ago
> As others mentioned, there is an implicit class here in play.
The same strategy is also followed by C# with their top-level statements. And yes, it's syntactic sugar.
https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/program-structure/top-level-statements https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals...