Skip to content

Conversation

@SeanKilleen
Copy link
Contributor

@SeanKilleen SeanKilleen commented Jun 9, 2022

Summary

  • Adds guidance text to string guide
  • Adds code snippet showcasing verbatim string interpolation.

Fixes #29765.

@SeanKilleen SeanKilleen changed the title WIP: Verbatim string interpolation guidance Verbatim string interpolation guidance Jun 9, 2022
Thanks Bill!

Co-authored-by: Bill Wagner <wiwagn@microsoft.com>
@SeanKilleen
Copy link
Contributor Author

OK, I think this is all good now. 👍 Ready for official review.

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.

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.

…nterpolation.cs


This makes the most sense to me.

Co-authored-by: Bill Wagner <wiwagn@microsoft.com>
@SeanKilleen
Copy link
Contributor Author

Thanks @BillWagner! I agree with your suggestion to change the output, and I committed it. 👍

@SeanKilleen SeanKilleen requested a review from BillWagner June 9, 2022 18:23
@BillWagner BillWagner merged commit 8ef80ba into dotnet:main Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an example for @$ and formatting

3 participants