Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以指定 OnMethodInvocationAspect 只能应用于特定的方法签名,例如 "int methodname(ClassA obj)" 吗?
是的,如果 MethodBase 没有预期的签名,则通过覆盖方法 CompileTimeValidate 并返回 false 。