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