I'm writing an error handling module for a fairly complex system architected into layers. Sometimes our data layer throws obscure exceptions.
It would be really handy to log out the values of the parameters of the method that threw the exception.
I can reflect on the TargetSite property of the exception to find the method's parameter types and names, but I don't seem to be able to get the values... am I missing something?
Dupe