新手请教:关于泛型List<int>
for (int r = 1; r <= 9; r++) { for (int c = 2; c <= 4; c++) { List<int> arr = new List<int>(){Convert.ToInt32(flex[r,c])}; } }for (int r = 1; r <= 9; r++){ List<int> arr = new List<int>(3); for (int c = 2; c <= 4; c++) { arr.Add(Convert.ToInt32(flex[r, c])); }}
[解决办法]