2014年7月2日

装箱拆箱

摘要: http://blog.csdn.net/xiven/article/details/5378470 (附:在托管C++中,允许直接取加拆箱时第一步得到的实例引用,而直接更改,但C#不行。) 关于把struct通过interface来直接修改装箱后的struct 通过接口方式,可... 阅读全文

posted @ 2014-07-02 18:30 norsd 阅读(114) 评论(0) 推荐(0) 编辑

关于 T[] 的反射问题

摘要: 1. T[] 类型不适应以下代码 Dictionary d = new Dictionary(); // Get a Type object representing the constructed type. // Type constructed... 阅读全文

posted @ 2014-07-02 13:41 norsd 阅读(201) 评论(0) 推荐(0) 编辑

使用dynamic关键词 CS1969错误

摘要: 添加 Microsoft.CSharp.dll 引用即可 不需要添加using Microsoft.CSharp 这类namespace 阅读全文

posted @ 2014-07-02 12:28 norsd 阅读(146) 评论(0) 推荐(0) 编辑

导航