Variable Lookup in Memory

  • Thread starter Thread starter Pratik Parikh
  • Start date Start date
P

Pratik Parikh

Hi EveryOne,

I have a question can you do memory variable lookup in C#, for example
I have a local variable in function declared. I want to lookup the
value of the variable using it physical name... Please let me know.. I
know the question sound like "WHY do you want to do that?". But it is
really important for me to find out, I remember reading it somewhere
that you can do that, but am not able to find it out back... So please
let me know if anyone from you know how to do that.

Thank You
Pratik
 
I have a local variable in function declared. I want to lookup the
value of the variable using it physical name...

The names of local variables are not stored in metadata, so that's
pretty much impossible (at least if you don't have debug symbols).



Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top