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
阅读全文