-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Labels
dotnet-csharp/svchelp wantedGood for community contributors to help [up-for-grabs]Good for community contributors to help [up-for-grabs]lang-reference/subsvc
Description
I failed to find on the page (and this one too) the answer to the following question.
If the interpolated string is very long and I want to break it up into multiple pieces (each having an interpolation expression), then does each part have to be prefixed with $
?
Example: Original interpolated string $"{a}{b}"
.
Which break-up is right,
this $"{a}" + "{b}"
or
this $"{a}" + $"{b}"
?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: d0665571-35b7-0841-5719-b69456b35cfb
- Version Independent ID: 0410420b-3b12-6d96-40cf-56f22ac19a1d
- Content: $ - string interpolation - C# reference
- Content Source: docs/csharp/language-reference/tokens/interpolated.md
- Product: dotnet-csharp
- Technology: csharp-language-reference
- GitHub Login: @pkulikov
- Microsoft Alias: wiwagn
Metadata
Metadata
Assignees
Labels
dotnet-csharp/svchelp wantedGood for community contributors to help [up-for-grabs]Good for community contributors to help [up-for-grabs]lang-reference/subsvc