I tried to use string interpolation $"" in C#6 with tabs
var name="My Name";
var text =$"\t\t{name}";
and it's working fine and tabs \t is resolved.
When trying to use Long string interpolation lines
var name = "myname";
var text = $@"\t\t{name}
tab and name is in a Long string interpolation \r\n
";
Console.WriteLine(text);
output
\t\tmyname
tab and name is in a Long string interpolation \r\n
The tab \t ,\r and \n aren't resolved
So i had to use string.Format() to resolve this issue.
The question:
Is this a limitation in the Long string interpolation for not supporting \t \r \n in c#6 (even c#7)