- 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.");
}
a553r7fa1L3d 05.04.2012 01:28 # +1
wvxvw 05.04.2012 04:25 # +2
DBdev 05.04.2012 12:31 # +1
А кот, да... говно.
istem 05.04.2012 21:34 # 0
Steve_Brown 05.04.2012 09:42 # +1
vistefan 05.04.2012 16:24 # 0
Steve_Brown 05.04.2012 16:58 # 0
a553r7fa1L3d 05.04.2012 17:01 # +1
istem 05.04.2012 22:40 # 0
abatishchev 05.04.2012 10:14 # −12
lucidfoxGovno 05.04.2012 11:44 # +6
abatishchev 05.04.2012 12:36 # −8
Lure Of Chaos 06.04.2012 00:15 # 0
guest 14.09.2012 19:29 # 0
guest 16.04.2016 04:28 # 0