mercredi 1 juillet 2015

How to get methods declared in Base class using Reflection?

I am trying to invoke methods using Reflection in Windwos 8 store application. I tried to get list of all methods from a base class method using this.GetType().GetTypeInfo().DeclaredMethods.

var methodList = base.GetType().GetTypeInfo().DeclaredMethods;

I am able to get all methods declared in the child class and invoke them. But i am unable to get list of methods defined in the base class.
what is wrong with the approach? this project built using .Net for Windows store





Aucun commentaire:

Enregistrer un commentaire