-
Notifications
You must be signed in to change notification settings - Fork 6k
Open
Labels
📌 seQUESTeredIdentifies that an issue has been imported into Quest.Identifies that an issue has been imported into Quest.dotnet-csharp/svcin-prThis issue will be closed (fixed) by an active pull request.This issue will be closed (fixed) by an active pull request.lang-reference/subsvcokr-qualityContent-quality KR: Concerns article defects (bugs), freshness, or build warnings.Content-quality KR: Concerns article defects (bugs), freshness, or build warnings.
Description
I believe this document is good overall but can use a few clarifications:
Both opening and closing quote characters must be on their own line.
Whitespace only lines following the opening quote are included in the string literal.
What does "On their own line" mean?
The code example immediately preceding this rule begins with:
var xml = """
Are those quotes "on their own line" despite being on the same line as the variable declaration?
Either way, is the whitespace that follows that initial line included in the string literal?
var xml = """ // Is this whitespace included in the string literal? This is a "whitespace only line"
<element attr="content">
<body>
</body>
</element>
""";
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
- ID: 62bd57d5-0e7d-4355-0689-4b6b90ab4057
- Version Independent ID: 5737c986-9b06-9444-f7bc-893607d390d7
- Content: Raw string literals - '''
- Content Source: docs/csharp/language-reference/tokens/raw-string.md
- Product: dotnet-csharp
- Technology: csharp-language-reference
- GitHub Login: @BillWagner
- Microsoft Alias: wiwagn
Copilot
Metadata
Metadata
Assignees
Labels
📌 seQUESTeredIdentifies that an issue has been imported into Quest.Identifies that an issue has been imported into Quest.dotnet-csharp/svcin-prThis issue will be closed (fixed) by an active pull request.This issue will be closed (fixed) by an active pull request.lang-reference/subsvcokr-qualityContent-quality KR: Concerns article defects (bugs), freshness, or build warnings.Content-quality KR: Concerns article defects (bugs), freshness, or build warnings.
Type
Projects
Status
👀 In review