Click here to Skip to main content
16,022,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
Reflection enables us to find out the types in our assemblies during runtime.In the same way, Is it possible to get the value of a variable from a assembly during runtime?
Posted
Updated 26-Sep-10 18:47pm
v2

If you mean "can I access the value of a specific instance of a variable in another assembly at runtime" then: No. It runs in it's own memory space and you cannot access it unless it provides a mechanism.
 
Share this answer
 
You could attach a debugger to a running process if debug info was generated and available. More debugger information/download can be found here http://www.microsoft.com/whdc/devtools/debugging/default.mspx[^]

You cannot use reflection to simply assign a running process and "watch" it as if it was your own. For orher .net dll this is possible however because they run in the same process but again debug information must be available. Reflection is, as the name implies, a view at yourself.

Good luck!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900