1

Is it possible to access from outside of the class private field _invocationList using reflections ?

enter image description here

I have tried to

var bindingFlags = BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance;

Type type = common.GetType();

var myEvent = type.GetEvent("OnTransformerTypeChanged");

var myfields = myEvent.GetType().GetFields(BindingFlags.NonPublic |BindingFlags.Instance);

or

var myfields = myEvent.GetType().GetField("_invocationList", BindingFlags.NonPublic | BindingFlags.Instance);
Michal Olechowski
  • 636
  • 1
  • 8
  • 25
  • 2
    Yes probably, what have you tried? [ask].. also a screenshot is hard to see (some cant see it at all) instead, describe the problem. – Sayse Aug 11 '15 at 11:29
  • 2
    Yes you can. But.. What are you trying to achieve ? – Sriram Sakthivel Aug 11 '15 at 11:30
  • 3
    possible duplicate of [Find a private field with Reflection?](http://stackoverflow.com/questions/95910/find-a-private-field-with-reflection) – Hjalmar Z Aug 11 '15 at 11:31
  • 2
    @Sinatr - When a work policy blocks images, no amount of clicking will make it readable – Sayse Aug 11 '15 at 11:36

0 Answers0