1. 多转1:
int[,] array2 = {{1,2,3},{4,5,6},{7,8,9}};
int[] array1 = array2.OfType<int>().ToArray();
int[][] array2 = {new[]{1,2,3},new[]{4,5,6},new[]{7,8,9}};
int[] array1 = array2.SelectMany(i=>i);
1. 多转1:
int[,] array2 = {{1,2,3},{4,5,6},{7,8,9}};
int[] array1 = array2.OfType<int>().ToArray();
int[][] array2 = {new[]{1,2,3},new[]{4,5,6},new[]{7,8,9}};
int[] array1 = array2.SelectMany(i=>i);
转载于:https://www.cnblogs.com/ericfine/archive/2012/05/15/2501310.html