title: Using an array as argument for string.Format()
body: <p>When trying to use an array as an argument for the <code>string.Format()</code> method, I get the following error:</p>
  
  <blockquote>
    <p>FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.</p>
  </blockquote>
  
  <p>The code is as follows:</p>
  
  <pre><code>place = new int[] { 1, 2, 3, 4};
  infoText.text = string.Format("Player1: {0} \n Player2: {1} \n Player3: {2} \n Player4: {3}", place);
  </code></pre>
  
  <p>The Array contains four values and the arguments in the <code>String.Format()</code> are also the same.</p>
  
  <p>What causes this error?</p>
  
  <p>(The <code>infoText.text</code> is just a regular String object)</p>