摘要: 工作中发现一个公共组件因为某个类不带有[Serializable]特性,导致保存到memcache时出错。刚好负责的同事请假不在,尝试了iLSpy反编译方法后,最后决定使用Mono.Cecil直接修改现成的程序集dll解决。 示例代码如下:class Program { static void Main(string[] args) { var asmFile = "TestDll.dll"; // 程序集名 Console.WriteLine("add serializable attribute for '{0... 阅读全文
posted @ 2012-05-12 16:32 vento 阅读(627) 评论(1) 推荐(1) 编辑