I work on a logging project. I want to save parameter values of methods in database. How can I get these values. I want to get parameter value of "Test" method in FirstChanceException event.
class Program
{
private static void Main(string[] args)
{
AppDomain.CurrentDomain.FirstChanceException += CurrentDomain_FirstChanceException;
Test(100);
}
private static void Test(int i)
{
throw new OverflowException();
}
private static void CurrentDomain_FirstChanceException(object sender,
System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs e)
{
//I Want To Get Parameter Value of Test Method
}
}