Is it possible to write code like this?
public void DoSomeOperation().Log()
{
}.Log()
Above call will execute Log() function while entering the DoSomeOperation method and while exiting the method. Can i do something like that? I know i can use AOP here but without using AOP, does .NET give this kind of luxary?
1 Answer