I am looking for a way to call a method after calling another method, but before entering it. Example:
public class Test {
public void Tracer ( ... )
{
}
public int SomeFunction( string str )
{
return 0;
}
public void TestFun()
{
SomeFunction( "" );
}
}
In the above example, I would like to call Tracer () after the function SomeFunction () was called TestFun (), but before SomeFunction () was introduced. I would also like to get reflection data in SomeFunction ().
- . - Castle DynamicProxy; , , , . , "", "" , , Dynamic Proxy. .
, AOP ContextBoundObject .