khalidabuhakmeh, Top-level statements are a neat feature of #dotnet, but some implicit returns happen when you add class definitions and functions to the end of the file.
With #JetBrainsRider and #ReSharper, you can have the tooling turn an implicit return into an explicit one, so there’s no confusion about where executing code ends and definitions start. #csharp
JetBrains Rider (thanks to ReSharper) adding an explicit return in a top-level statement file.
Add comment