How to access fields in methods using Reflection

  • Thread starter Thread starter djp
  • Start date Start date
D

djp

Hi,

I'm trying to access fields that are local to a method using reflection.
What BindingFlags value should I use and is this possible at all. So far I
was able to retreive class fields only.

Thanks
 
Hi,

I'm trying to access fields that are local to a method using reflection.
What BindingFlags value should I use and is this possible at all. So far I
was able to retreive class fields only.

Perhaps I don't understand. If the field is local to the method, why
use reflection? Just use the field.
 
Back
Top