Skip to content

Conversation

@anandmeg
Copy link
Contributor

@anandmeg anandmeg commented Dec 4, 2025

Updated the date and improved the AI tools section with a clearer example prompt.

Summary

Describe your changes here.

Fixes #Issue_Number (if available)


Internal previews

📄 File 🔗 Preview link
docs/csharp/how-to/concatenate-multiple-strings.md How to concatenate multiple strings (C# Guide)

Updated the date and improved the AI tools section with a clearer example prompt.
@anandmeg anandmeg requested review from a team and BillWagner as code owners December 4, 2025 22:52
Copilot AI review requested due to automatic review settings December 4, 2025 22:52
@dotnetrepoman dotnetrepoman bot added this to the December 2025 milestone Dec 4, 2025
@dotnet-policy-service dotnet-policy-service bot added dotnet-csharp/svc fundamentals/subsvc community-contribution Indicates PR is created by someone from the .NET community. labels Dec 4, 2025
Copilot finished reviewing on behalf of anandmeg December 4, 2025 22:53
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR revises the AI section in the C# string concatenation how-to guide. The changes update the metadata date and improve the AI tools section by providing a clearer, more structured example prompt with better formatting.

Key Changes

  • Updated the ms.date metadata field to 12/05/2025
  • Restructured the example Copilot Chat prompt to be more readable with multi-line formatting
  • Split the AI disclaimer into separate sentences for improved clarity

Comment on lines +81 to +84
"Hello [name], today's date is [current date]. You have [count] new notifications."
Use variables for: name is "John", date is today's date, and notification count is 3.
Format the date as mm/dd/yyyy.
Show the output.
Copy link

Copilot AI Dec 4, 2025

Choose a reason for hiding this comment

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

The list items in lines 81-84 should end with periods since they are more than three words each. According to the style guidelines, list items with more than three words must end with periods.

Copilot generated this review using guidance from repository custom instructions.
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.

I had one suggestion, and then this is ready to merge.


```copilot-prompt
Generate C# code to use String.Format to build an output string "Hi x, today's date is y. You are z years old." where x is "John", y is today's date and z is the birthdate January 1, 2000. The final string should show date in the full format mm/dd/yyyy. Show output.
Generate C# code to use String.Format to build an output string:
Copy link
Member

Choose a reason for hiding this comment

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

For this task, I'd probably use string interpolation (e.g. $ and {} around arguments. That would produce cleaner code.

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.

2 participants