2 using System
.Collections
.Generic
;
6 static int[] x
= new int[] {100, 200}
;
10 IEnumerator
<int> enumerator
= X
<int>.Y (x
);
12 while (enumerator
.MoveNext ())
13 sum
+= enumerator
.Current
;
18 if (X
<int>.Z (x
, 0) != 100)
21 if (X
<int>.Z (x
, 1) != 200)
30 public static IEnumerator
<T
> Y (IEnumerable
<T
> x
)
32 return x
.GetEnumerator ();
35 public static T
Z (IList
<T
> x
, int index
)