Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

addition to top-level statements #40230

Merged

Conversation

timdeschryver
Copy link
Contributor

@timdeschryver timdeschryver commented Mar 27, 2024

Summary

This PR adds a mention of return values and command line arguments to the main command line example of top-level statements.
It also updates the example to show an example.

I didn't add more information because I was afraid that it would just be a repetition of the referenced article about top level statements.

Should both articles reference each other add the bottom of the page in a "See also" section?

Fixes #40064


Internal previews

📄 File 🔗 Preview link
docs/csharp/fundamentals/program-structure/main-command-line.md Main() and command-line arguments

@dotnet-bot dotnet-bot added this to the March 2024 milestone Mar 27, 2024
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates PR is created by someone from the .NET community. label Mar 27, 2024
@timdeschryver timdeschryver force-pushed the issue/40064-top-level-statements branch from 84bd2a1 to e449f0e Compare March 28, 2024 13:43
Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@BillWagner BillWagner merged commit fcfa6ef into dotnet:main Mar 28, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community-contribution Indicates PR is created by someone from the .NET community. dotnet-csharp/svc fundamentals/subsvc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add an example of top-level statements with command line arguments
4 participants