How to extract static data out of an assembly?

  • Thread starter Thread starter Udi
  • Start date Start date
U

Udi

Hi all,
How can I extract the value of a static strnig field that resides
inside a dll?

Thanks!
 
Hi all,
How can I extract the value of a static strnig field that resides
inside a dll?

Thanks!

If the field is declared private (and have no accessors) you can not.
 
If the field is declared private (and have no accessors) you can not.

Yes you can, if you have enough permission to use reflection with non-
public fields.

Just use Type.GetFields including BindingFlags.NonPublic.
 

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