开发者

Postsharp: Method signature for Aspect

开发者 https://www.devze.com 2022-12-15 20:01 出处:网络
Can i specify that an OnMethodInvocationAspect can only be applied to a specific method signature, for exemple \"int methodname(ClassA obj)\"开发者_JS百科 ?Yes, by overriding the method CompileTimeVal

Can i specify that an OnMethodInvocationAspect can only be applied to a specific method signature, for exemple "int methodname(ClassA obj)"开发者_JS百科 ?


Yes, by overriding the method CompileTimeValidate and returning false if the MethodBase has not the expected signature.

0

精彩评论

暂无评论...
验证码 换一张
取 消