Reflection: get Static method from the parent class.
- by jitm
Hello, I have task to get static method using reflection like this :
myType.GetMethod("MyMethod",BindingFlags.Static | BindingFlags.Public | BindingFlags.InvokeMethod);
In case if class contains MyMethod all works correctly, but in case if parent class contains MyMethod I receive null :(. How can I call static method from the parent using reflection like code that I describe above?
Thanks.