- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
switch (count)
{
case 2:
return Tuple.Create(col[1]);
case 3:
return Tuple.Create(col[1], col[2]);
case 4:
return Tuple.Create(col[1], col[2], col[3]);
case 5:
return Tuple.Create(col[1], col[2], col[3], col[4]);
case 6:
return Tuple.Create(col[1], col[2], col[3], col[4], col[5], col[6]);
case 8:
return Tuple.Create(col[1], col[2], col[3], col[4], col[5], col[6], col[7]);
case 9:
return Tuple.Create(col[1], col[2], col[3], col[4], col[5], col[6], col[7], col[7]);
case 10:
return Tuple.Create(col[1], col[2], col[3], col[4], col[5], col[6], col[7], Tuple.Create(col[8]));
case 11:
return Tuple.Create(col[1], col[2], col[3], col[4], col[5], col[6], col[7], Tuple.Create(col[8], col[9]));
case 12:
return Tuple.Create(col[1], col[2], col[3], col[4], col[5], col[6], col[7], Tuple.Create(col[8], col[9], col[10]));
case 13:
return Tuple.Create(col[1], col[2], col[3], col[4], col[5], col[6], col[7], Tuple.Create(col[8], col[9], col[10], col[11]));
case 14:
return Tuple.Create(col[1], col[2], col[3], col[4], col[5], col[6], col[7], Tuple.Create(col[8], col[9], col[10], col[11], col[12]));
default:
throw new ArgumentOutOfRangeException("count", count, "Can't convert array to tuple.");
}