static Int32[] Merge_Sort(Int32[] massive)
 {
     if (massive.Length == 1)
         return massive;
     Int32 mid_point = massive.Length / 2;
     return Merge(Merge_Sort(massive.Take(mid_point).ToArray()), Merge_Sort(massive.Skip(mid_point).ToArray()));
 }
Esempio n. 2
0
 /// <summary>
 /// Read an array of Int32
 /// </summary>
 public Int32[] ReadInt32s(int count)
 {
     var result = new Int32[count];
     var cnt = ReadInt32s(result, 0, count);
     if (EOF && cnt == 0) return null;
     return result.Take(cnt).ToArray();
 }