Angelos,
No, you can not. You can only reflect on metadata, which is created a
compile time. To that end, you would have to pass the actual values
yourself to whatever method you wish.
Now, one might think that it would be easy to get the values (and
indeed, it might be because you have access to the stack). However, it
wouldn't be a good idea, because there is no way to make anything "const",
which is needed so that you don't modify anything further up on the stack.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Angelos Karantzalis" <ak**********@yahoo.com> wrote in message
news:e1**************@tk2msftngp13.phx.gbl...
Hi y'all .. I hope this is an interesting one ...
Within an executing method, I can call MethodBase.GetCurrentMethod() and
retrieve info about the method that's currently running, including
parameter
names & data types.
Is there a way to get the parameter v a l u e s as well ??? ( I know ...
this is indeed weird, but .. don't ask :D )
Cheers,
Angel
O:]