title: Why can't I use new string in the debugger?
body: <p>The following code compiles successfully:</p>
  
  <pre><code>string foo = new string(new char[] { 'b', 'a', 'r' });
  </code></pre>
  
  <p>The following code fails to be evaluated if pasted into the watch window or the Immediate Window:</p>
  
  <pre><code>new string(new char[] { 'b', 'a', 'r' });
  </code></pre>
  
  <p>The error message is:</p>
  
  <pre><code>'new string(new char[] { 'b', 'a', 'r' })' threw an exception of type 'System.ArgumentException'
      base {System.SystemException}: {"Only NewString function evaluation can create a new string."}
      Message: "Only NewString function evaluation can create a new string."
      ParamName: null
  </code></pre>
  
  <p>Why does this happen?</p>