title: What is C# Equivalent to C++ STL fill method
body: <p>In C++, we can set a range of values of an array(and other similar containers) using fill.</p>
  
  <p>For example, </p>
  
  <pre><code>fill(number, number+n,10);
  </code></pre>
  
  <p>The above code will set the first n values of the array number with the value 10.</p>
  
  <p>What is the closest C# equivalent to this.</p>