1 int[] foo = new int[100];
2 for (int num = 0; num < foo.Length; num++)3 {
4 foo[num] = num + num;
5 }
6
7
8 foo = (from n in Enumerable.Range(0, 100)
9 select n * n).ToArray();
1 int[] foo = new int[100];
2 for (int num = 0; num < foo.Length; num++)转载于:https://www.cnblogs.com/Yellowshorts/p/3507528.html