Rectangle 27 0

.net Putting " in verbatim string with C ?


string templateString = @"
    {0}
    ""{1}""
    {2}
    ";

When using a multi-line string literal in C# with @", the correct escape sequence for a double-quote becomes "" instead of \".

Note
Rectangle 27 0

.net Putting " in verbatim string with C ?


string templateString = @"
        {0}
        ""{1}""
        {2}
        ";
Note
Rectangle 27 0

.net Putting " in verbatim string with C ?


string templateString = @"
    {0}
    ""{1}""
    {2}
    ";

When using a multi-line string literal in C# with @", the correct escape sequence for a double-quote becomes "" instead of \".

Note