2 ms·
> C# doesn't treat whitespace as signficant It doesn't for code, it does for strings. If you have: var foo = "<foo> <bar>
by LandR 5y ago
> C# doesn't treat whitespace as signficant
It doesn't for code, it does for strings.
If you have:
var foo = "<foo>
<bar>
<quax>
</foo>";
That string is actually
<foo>
<bar>
<quax>
</foo>
In raw string form, as per the proposal, the string would be:
<foo>
<bar>
<quax>
</foo>
It allows you to write strings nicely inline, and the indentation in the string itself doesn't matter.