title: Why stackalloc cannot be used with reference types?
body: <p>If <code>stackalloc</code> is used with reference types as below</p>
  
  <pre><code>var arr = stackalloc string[100];
  </code></pre>
  
  <p>there is an error   </p>
  
  <blockquote>
    <p>Cannot take the address of, get the size of, or declare a pointer to a
    managed type ('string')</p>
  </blockquote>
  
  <p>Why is so? Why <code>CLR</code> cannot declare pointer to a managed type?</p>