title: How to initialize integer array in C#
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/13971730/c-sharp-leaner-way-of-initializing-int-array">c# Leaner way of initializing int array</a>  </p>
  </blockquote>
  
  
  
  <p>Basically I would like to know if there is a more efficent code than the one shown below</p>
  
  <pre><code>    private static int[] GetDefaultSeriesArray(int size, int value)
      {
          int[] result = new int[size];
          for (int i = 0; i &lt; size; i++)
          {
              result[i] = value;
          }
          return result;
      }
  </code></pre>
  
  <p>where size can vary from 10 to 150000. For small arrays is not an issue, but there should be a better way to do the above.
  I am using VS2010(.NET 4.0)</p>