Groups | Blog | Home
all groups > dotnet clr > february 2007 >

dotnet clr : Is it possible to get the value of a parameter via Reflection?


Tim Pulley
2/6/2007 5:26:12 PM
I haven't found a way to retrieve a parameter's value using a StackTrace and
Reflection. Have I missed something?

TIA, Tim

Patrick Steele
2/6/2007 5:42:14 PM
In article <evFt$2jSHHA.4276@TK2MSFTNGP02.phx.gbl>, "Tim Pulley"
<tpulley_at_mantech-ist_dot_com> says...
[quoted text, click to view]

No. I believe that type of information is available only to unmanaged
debuggers. It could pose a security risk of a method could walk back up
the stack and view the values of various parameters being passed around
to methods.

--
Patrick Steele
Ben Voigt
2/7/2007 8:36:01 AM

[quoted text, click to view]

Reflection in general constitutes a security risk, that's why it requires a
special permission, and I think even then there are a few things not allow
unless you have full trust.

[quoted text, click to view]

AddThis Social Bookmark Button