title: What's does the dollar sign ($"string") do?
body: <p>I have been looking over some C# exercises in a book and I ran across an example that stumped me. Straight from the book, the output line shows as:</p>
  <pre><code>Console.WriteLine($&quot;\n\tYour result is {result}.&quot;);
  </code></pre>
  <p>The code works and the <code>double result</code> shows as expected. However, not understanding why the <code>$</code> is there at the front of the string, I decided to remove it, and now the code outputs the name of the array <code>{result}</code> instead of the contents. The book doesn't explain why the $ is there, unfortunately.</p>
  <p>I have been scouring the VB 2015 help and Google, regarding string formatting and <code>Console.WriteLine</code> overload methods. I am not seeing anything that explains why it is what it is. Any advice would be appreciated.</p>