title: 2d array in c# index search with array using lambda expression
body: <p>I have a 2d array:- </p>
  
  <pre><code>int[,] group = {{1,2,3,4,5},{6,7,8,9,10},{11,12,13,14,15},{16,17,18,19,20},{21,22,23,24,25},};
  </code></pre>
  
  <p>now, aside from that I have two other arrays:-</p>
  
  <p><code>int[]array1= new int[]{0,2,4};</code></p>
  
  <p><code>int[]array2= new int[]{1,3};</code></p>
  
  <p>what I want is a resultant array which take its width from array1 and length from array2
  , so that the resultant array</p>
  
  <p>arrayrel={group[0,1],group[0,3],group[2,1],group[2,3],group[4,1]group[4,3] }</p>
  
  <p><code>arrayrel={2,4,12,14,22,24}</code></p>
  
  <p>this can be done using loop I was wondering if there is a method to achieve this result using lambda expressions.</p>