title: A property or indexer may not be passed as an out or ref parameter while Array Resize
body: <p>While I try to resize an array in C# as below,</p>
  
  <pre><code>Array.Resize(ref Globals.NameList, 0);
  </code></pre>
  
  <p>I get the below error</p>
  
  <pre><code>A property or indexer may not be passed as an out or ref parameter
  </code></pre>
  
  <p>Globals is an object. NameList is a string type array declared in Globals Class.</p>
  
  <p>Please help me to fix this by posting the correct code.</p>
  
  <p>Thanks!</p>