Type elementType = array.GetType().GetElementType();//获取单个元素的类型
Array newArray = Array.CreateInstance(elementType, newSize);
04-11
2560
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
04-13
1406
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
12-12
1982
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
06-28
1467
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)