3
string[] txt1 = new string[]{"12","13"};
this.SetValue(txt1, v => Convert.ChangeType(v, typeof(decimal[]), null));
它会抛出一个错误 - 对象必须实现IConvertible。将字符串[]转换为十进制[],int [],float [] .double [] in c#
我也希望有一个代码转换的String []要小数[],INT [],漂浮[]。双[]
是这会给我结果小数[] – Malcolm 2009-11-20 14:10:45
烨 - 从ConvertAll的返回值将是一个小数[] – thecoop 2009-11-20 14:11:21
接受这是否有任何其他方式convertAll是不是我的最终支持 – Malcolm 2009-11-20 14:12:27