2

Is there a way to use C# 6's String interpolation with multi-line strings ?

Something like

   string a = "1111";
   string s = @$"
         {a}    
    ";

The above does not work.

Veverke
  • 5,705
  • 2
  • 43
  • 86
  • 3
    Possible duplicate of [Long string interpolation lines in C#6](http://stackoverflow.com/questions/31764898/long-string-interpolation-lines-in-c6) – BoeseB Aug 17 '16 at 06:11

1 Answers1

8

Try swapping the places of $ and @.

Doruk
  • 864
  • 9
  • 25