Your first form did work in the VS2015 Preview:
int i = 42;
var s = "\{i}";
That compiled and ran for me. ReSharper complained, but that’s a different matter.
For the final release of C#, it is:
var s = $"{i}";
Your first form did work in the VS2015 Preview:
int i = 42;
var s = "\{i}";
That compiled and ran for me. ReSharper complained, but that’s a different matter.
For the final release of C#, it is:
var s = $"{i}";