Reading method parameters

  • Thread starter Thread starter Edward
  • Start date Start date
E

Edward

Hi there,

The task is to log everything that comes to a single method and what
goes out. It has to by generic in the way that this thing should by
pluggable to every method no matcher what kind of in out parameters does
this method have. I want to by able to log parameter name, parameter
value. How do I do this task?

Thanks!
Edward
 
Hello Edward,
The task is to log everything that comes to a single method and what goes
out. It has to by generic in the way that this thing should by pluggable
to every method no matcher what kind of in out parameters does this method
have. I want to by able to log parameter name, parameter value. How do I
do this task?

I don't think there's a generic way of doing this, other than going for
one of the .NET AOP frameworks out there - and even then, as far as I know
AOP on .NET, it's still not going to work with any arbitrary method.


Oliver Sturm
 
Back
Top