title: Moving elements in array c#
body: <p>I have this very simple array which I want to be able to move around some items in. Are there any built in tools in c# to do this? If not, du you have any suggestion in how to do it.</p>
  <p>In example</p>
  <pre><code>var smallArray = new string[4];
  smallArray[0] = &quot;a&quot;;
  smallArray[1] = &quot;b&quot;;
  smallArray[2] = &quot;c&quot;;
  smallArray[3] = &quot;d&quot;;
  </code></pre>
  <p>And lets say I want to (programmatically) swap index 2 and 0, creating</p>
  <pre><code>smallArray[0] = &quot;c&quot;;
  smallArray[1] = &quot;a&quot;;
  smallArray[2] = &quot;b&quot;;
  smallArray[3] = &quot;d&quot;;
  </code></pre>
  <p>Thanks.</p>