title: Cannot take the address of the given expression C# pointer
body: <p>Consider the following code in an unsafe context:</p>
  
  <pre><code>string mySentence = "Pointers in C#";
  
  fixed (char* start = mySentence) // this is the line we're talking about
  {
      char* p = start;
  
      do
      {
          Console.Write(*p);
      }
      while (*(++p) != '\0');
  }
  
  Console.ReadLine();
  </code></pre>
  
  <p>This works good.</p>
  
  <p>According to <a href="http://msdn.microsoft.com/en-us/library/f58wzh21(v=VS.100).aspx" rel="noreferrer">http://msdn.microsoft.com/en-us/library/f58wzh21(v=VS.100).aspx</a> I should be able to replace the line I marked with</p>
  
  <pre><code>fixed(char* start = &amp;mySentence[0])
  </code></pre>
  
  <p>But unfortunately VS gives me the following error.</p>
  
  <blockquote>
    <p>Cannot take the address of the given expression</p>
  </blockquote>
  
  <p>Is the error on my side?</p>
  
  <p>VS.NET 2010 Premium.</p>