title: How can I assign a value to multiple array indices at once without looping?
body: <p>How can I set one value to several elements of the array in C#?</p>
  <h3>Example:</h3>
  <p>I have an array initialized as follows:</p>
  <pre><code>int[] array=new int[]{2,3,5,3,7,2,9}
  </code></pre>
  <p>and I want to set the values between the 2-nd and 5-th indices to 8.
  How it can be done?</p>