in a custom method attribute is there is any way to access the method and execute some code before the method body ? and at the end of the method body ?
thanks in advance.
in a custom method attribute is there is any way to access the method and execute some code before the method body ? and at the end of the method body ?
thanks in advance.
The keyword to look for is Aspect oriented programming (AOP). One implementation that can be used to do what you want is PostSharp.