M
Marcin
Hello!
Is there any method to detect parameters values passed to
called method?
For example:
public Guid ApplicationLogin(string userName, string
password, int dbId)
was called:
ApplicationLogin("test","test",1);
I know that inside method ApplicationLogin I can detect
what method was called
and what parameters it has using object StackFrame:
StackFrame sf = new StackFrame(0);
sf.GetMethod().GetParameters() - list of parameters
But how can I detect those parameters value?
Anybody have any ideas?
Thanks
Marcin
Is there any method to detect parameters values passed to
called method?
For example:
public Guid ApplicationLogin(string userName, string
password, int dbId)
was called:
ApplicationLogin("test","test",1);
I know that inside method ApplicationLogin I can detect
what method was called
and what parameters it has using object StackFrame:
StackFrame sf = new StackFrame(0);
sf.GetMethod().GetParameters() - list of parameters
But how can I detect those parameters value?
Anybody have any ideas?
Thanks
Marcin