-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Revise AI prompt example #50355
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
base: main
Are you sure you want to change the base?
Revise AI prompt example #50355
Conversation
Updated the date and modified the Copilot prompt example to include CSV-style input handling.
There was a problem hiding this 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 prompt example in the C# documentation for string splitting using String.Split. The changes improve the example by using a more realistic CSV-style parsing scenario instead of a simpler sentence-splitting example.
Key changes:
- Updated the ms.date metadata field
- Revised the Copilot prompt example to demonstrate CSV parsing with multiple delimiters and whitespace handling
- Improved the disclaimer text by splitting it into clearer, more actionable guidance
BillWagner
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @anandmeg
I had a couple comments, and then this is ready.
| Generate C# code to split a CSV-style input string containing values, where entries may be separated by commas or semicolons and may contain extra whitespace. | ||
| Remove any empty values and trim whitespace from the results. | ||
| Show example output for the string: " apples, oranges ; bananas, , ;pears". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an opinion, but I like the earlier example better, possibly to split a paragraph into distinct sentences using sentence ending punctuation for delimiters: ., ?, and !, and trimming additional whitespace.
Internal previews