`args` used outside of the namespace

I'm trying to understand IHttpClientFactory and came across this. What does using args in this way do?
No description
1 Reply
Jimmacle
Jimmacle3mo ago
this is Top Level Statements, a somewhat new feature that lets you skip the Program.Main boilerplate in one file in your project consider this code as being inside the Main method where args is the command line argument array https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/program-structure/top-level-statements