I have got the following LINQ query and would like to know equivalent normal C# code for it.
int[] arrayMain = new int[6];
return (from i in Enumerable.Range(0, arrayMain.Length / 2)
from c in ReturnArrayOfLengthTwo()
select c).ToArray();
The output of this query is coming as an array of length 6. But I would like to know about ordering because ReturnArrayOfLengthTwo just selects two random locations from arrayMain and then creates and returns an array of length 2.
Thanks