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 26 27 28 29 30 31 32 33 34 35 36
|
public class Test
{
public Action<IEnumerable<System.Int32>> EachLine { get; set; }
public void Start(System.Int32[] tab)
{
System.Int32[] retour = new System.Int32[tab.Length]; System.Int32[] t0 = new System.Int32[] { 1, 2, 3, 4, 5, };
System.Int32[] t1 = new System.Int32[] { 1, 2, 3, 4, 5, };
System.Int32[] t2 = new System.Int32[] { 1, 2, 3, 4, 5, };
System.Int32[] t3 = new System.Int32[] { 1, 2, 3, 4, 5, };
System.Int32[] t4 = new System.Int32[] { 1, 2, 3, 4, 5, };
for (int i0 = 0; i0 < t0.Length; i0++)
{
retour[0] = t0[i0];
for (int i1 = 0; i1 < t1.Length; i1++)
{
retour[1] = t1[i1];
for (int i2 = 0; i2 < t2.Length; i2++)
{
retour[2] = t2[i2];
for (int i3 = 0; i3 < t3.Length; i3++)
{
retour[3] = t3[i3];
for (int i4 = 0; i4 < t4.Length; i4++)
{
retour[4] = t4[i4];
if (EachLine != null) EachLine(retour);
}
}
}
}
}
}
} |
Partager