title: C#: Interpolated Strings- Visual Studio 2013?
body: <p><a href="https://i.stack.imgur.com/QHeRh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QHeRh.png" alt="enter image description here"></a>I am looking at this example from the google cloud platform.</p>
  
  <p><a href="https://cloud.google.com/storage/docs/json_api/v1/json-api-dotnet-samples" rel="nofollow noreferrer">https://cloud.google.com/storage/docs/json_api/v1/json-api-dotnet-samples</a></p>
  
  <p>Specifically:</p>
  
  <pre><code>public void DownloadStream(string bucketName)
  {
      StorageService storage = CreateStorageClient();
  
      using (var stream = new MemoryStream())
      {
          storage.Objects.Get(bucketName, "my-file.txt").Download(stream);
  
          var content = Encoding.UTF8.GetString(stream.GetBuffer());
  
          Console.WriteLine($"Downloaded my-file.txt with content: {content}");
      }
  }
  </code></pre>
  
  <p><strong>Console.WriteLine($</strong> keeps giving me an error. I am using Visual Studio 2013 and cant seem to get this to work properly. Instead what i have to do is remove the dollar sign and + content as a variable.</p>
  
  <p>I read this is a new syntax for C# version 6? Am i missing something? - Cant do this on Visual studio 2013?</p>
  
  <p>Thanks for your responses!</p>
  
  <p>I have updated my solution to provide a picture of the error. All it says is ) Expected.</p>
  
  <p>It seems it does not recognize the dollar sign.</p>