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.

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.