Skip to content

Testing LAA#54501

Closed
JasonWHowell wants to merge 1 commit into
mainfrom
JasonWHowell-patch-1
Closed

Testing LAA#54501
JasonWHowell wants to merge 1 commit into
mainfrom
JasonWHowell-patch-1

Conversation

@JasonWHowell

@JasonWHowell JasonWHowell commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Testing LAA

Summary

Describe your changes here.

Fixes #Issue_Number (if available)


Internal previews

📄 File 🔗 Preview link
docs/csharp/tutorials/string-interpolation.md docs/csharp/tutorials/string-interpolation

@JasonWHowell JasonWHowell requested a review from BillWagner as a code owner June 23, 2026 21:48
Copilot AI review requested due to automatic review settings June 23, 2026 21:48
@JasonWHowell JasonWHowell requested a review from a team as a code owner June 23, 2026 21:48
@dotnetrepoman dotnetrepoman Bot added this to the June 2026 milestone Jun 23, 2026
@JasonWHowell JasonWHowell changed the title Update string-interpolation.md Testing LAA Jun 23, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.

Interpolated strings support all the capabilities of the [string composite formatting](../../standard/base-types/composite-formatting.md) feature. That makes them a more readable alternative to the use of the <xref:System.String.Format*?displayProperty=nameWithType> method. Every interpolated string must have:

- A string literal that begins with the `$` character before its opening quotation mark character. There can't be any spaces between the `$` symbol and the quotation mark character.
- A string literal that begins with the `$` character before its opening quotation mark character. There can't be any spaces between the `$` symbol and the quotation mark character.
Interpolated strings support all escape sequences that can be used in ordinary string literals. For more information, see [String escape sequences](../programming-guide/strings/index.md#string-escape-sequences).

To interpret escape sequences literally, use a [verbatim](../language-reference/tokens/verbatim.md) string literal. An interpolated verbatim string starts with both the `$` and `@` characters. You can use `$` and `@` in any order: both `$@"..."` and `@$"..."` are valid interpolated verbatim strings.
To interpret escape sequences literally, use a [verbatim](../language-reference/tokens/verbatim.md) string literal. An interpolated verbatim string starts with both the `$` and `@` characters. You can use `$` and `@` in any order: both `$@"..."` and `@$"..."` are valid interpolated verbatim strings.
Comment on lines 25 to 28
Interpolated strings support all the capabilities of the [string composite formatting](../../standard/base-types/composite-formatting.md) feature. That makes them a more readable alternative to the use of the <xref:System.String.Format*?displayProperty=nameWithType> method. Every interpolated string must have:

- A string literal that begins with the `$` character before its opening quotation mark character. There can't be any spaces between the `$` symbol and the quotation mark character.
- A string literal that begins with the `$` character before its opening quotation mark character. There can't be any spaces between the `$` symbol and the quotation mark character.
- One or more *interpolation expressions*. You indicate an interpolation expression with an opening and closing brace (`{` and `}`). You can put any C# expression that returns a value (including `null`) inside the braces.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants