Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Capturing method state using Reflection

Is there a way to use .NET reflection to capture the values of all parameters/local variables?

like image 853
Chris Avatar asked Oct 03 '08 19:10

Chris


1 Answers

You could get at this information using the CLR debugging API though it won't be a simple couple of lines to extract it.

like image 74
Rob Walker Avatar answered Sep 30 '22 04:09

Rob Walker