摘要: 利用特性Attribute+反射+代理类实现AOP 一、定义自定义特性 /// <summary> /// 自定义特性,方法执行前调用 /// </summary> public class CustomBeforeAttribute : Attribute { } /// <summary> // 阅读全文
posted @ 2024-07-15 09:42 DaiWK 阅读(4) 评论(0) 推荐(1) 编辑