-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Verbatim string interpolation guidance #29782
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
Conversation
Thanks Bill! Co-authored-by: Bill Wagner <wiwagn@microsoft.com>
|
OK, I think this is all good now. 👍 Ready for official review. |
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 @SeanKilleen
I like what you've added.
Right now, there is a mis-match between the code text and the output. That's because verbatim strings include all whitespace. This is important because we're adding raw string literals in C# 11. I've put in two different suggestions. Either one of them would work. I have a mild preference for changing the displayed output, but either is fine.
docs/csharp/programming-guide/strings/snippets/VerbatimStringInterpolation.cs
Outdated
Show resolved
Hide resolved
docs/csharp/programming-guide/strings/snippets/VerbatimStringInterpolation.cs
Show resolved
Hide resolved
…nterpolation.cs This makes the most sense to me. Co-authored-by: Bill Wagner <wiwagn@microsoft.com>
|
Thanks @BillWagner! I agree with your suggestion to change the output, and I committed it. 👍 |
Summary
Fixes #29765.