List集合转换为数组形式

通过List集合对象的转类型函数 .ToArray()

如List<decimal> → deciaml[]

代码如下:

            var ComIdList = ComList.Select(p => p.ComId).ToArray();