What is the final format for string interpolation in VS 2015?

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}";

Leave a Comment