String interpolation feature wish for C# 4.0

Mitch posted about his wish to integrate a shortcut for formatting in c# vnext.

Let’s say that my code is going to throw and exception, I typically need to build the error message to load into the exception message. That could be expressed as:

throw new Exception(string.Format(”{0}{1}{2}”, a, b, c));

But I think we could have a nicer inline string format syntax:

throw new Exception(  @(”{0}{1}{2}”|a|b|c)  );

I think this should be resolved more like it is in other dynamic languages like boo. Lets take a sample:

throw new Exception( $" {a}{b}{c} " );

The $ (or something other) before means, allow in line variable interpolation in this string literals.