2013年8月21日

.net postsharp编译时生成的代码?

摘要: 最近下载了postsharp,发现给方法添加[HandleException] attribute后,反编译后自动生成了很多代码,思考了很久,还是不知道在编译该程序集时,怎么生成的,所以希望大家能给与指点。原类public class MyClass { public MyClass() { } [HandleException] public int MyMethod(int x, string someString, float anotherFloat, bool theBool) { int b = 0; int a = 5 / b; return x + 1; }}编译... 阅读全文

posted @ 2013-08-21 21:19 Roc-Lee 阅读(467) 评论(2) 推荐(0) 编辑

导航