Set array values for specific range in C#
<p>I was looking for a way, how to set specific values for specific range in an array.</p>

<p>Something like this</p>

<p><strong>Pseudocode:</strong> </p>

<pre><code>var s = new uinit[64];
s[ 0..15] := { 2, 4, 6, 3,  1, 7, 8, 9,  7, 11, 37, 32,  19, 16, 178, 2200 }
s[16..31] := ... 
</code></pre>

<p>I was trying to find something like this in C#, but with no luck.
I am trying to come with something like this:</p>

<pre><code>public void SetArrayValues(int startIndex, uint[] values) 
{
    var length = values.Length;
    this.array[startIndex, startIndex + length] = values;
}
</code></pre>

<p>only thing I was able to find was <a href="https://msdn.microsoft.com/en-us/library/system.array.setvalue(v=vs.110).aspx" rel="noreferrer">System.Array.SetValue</a> but this does not meet my requirements.</p>

<p>Am I missing something?</p>

<p>Thanks for any help in advance </p>