0

Hi,

In my application if I get an exception I catch it and send stackTrace through email.

I also need the values of parameters passed to this function. I can get the names of function and parameters using MethodBase class of System.Reflection.

Please suggest how can I get the values of these parameters.

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by sid78669
1

in case you are using try and catch block, the simplest thing i can think of is take the parameters and add it to a csv string. then add this string to the stack trace message you are sending to the mail.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.