如何转换类型为' System.String []'的对象键入' System.IConvertible'

时间:2014-04-23 22:24:41

标签: .net string iconvertible

似乎无法了解如何使数组中的值显示在标签中。

sthlmLbl.Text += String.Format(" {0} grader celcius ({1} \x00b0F)", tempsisar[0], ((Convert.ToInt32(value) * (9 / 5)) + 32));

给出例外

Unable to cast object of type 'System.String[]' to type 'System.IConvertible'.

无法找到一个好的答案,因为我正在开发一个Windows窗体应用程序,我不能继承IConvertible ...

0 个答案:

没有答案