title: Initialize an integer array with a single value in C# .NET
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5089076/how-do-i-quicky-fill-an-array-with-a-specific-value">How do I quicky fill an array with a specific value?</a>  </p>
  </blockquote>
  
  
  
  <p>Is there a way to initialize an integer array with a single value like -1 without having to explicitly assign each item? </p>
  
  <p>Basically, if I have </p>
  
  <pre><code>int[] MyIntArray = new int[SomeCount];
  </code></pre>
  
  <p>All items are assigned 0 by default. Is there a way to change that value to -1 without using a loop? or assigning explicitly each item using {}? </p>