04 2011 档案

摘要:原因 :The Cast method only supports reference and boxing conversions. Use Select instead:就是说cast<>()方法只支持装箱和拆箱操作,其他强制类型转换不支持。比如:你要完成以下代码,会抛出异常的: static void Main(string[] args) { Hashtable st = new Hashtable(); st.Add("a",12); st.Add("b",13); st.Add("c", 14); double 阅读全文
posted @ 2011-04-28 15:12 kntao 阅读(194) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示