This project has moved and is read-only. For the latest updates, please go here.
1
Vote

Methods() does not flatten interface hierarchy

description

Hi to all.
I am trying to get all methods in an interface (including base interface methods) as mentioned in this post: http://goo.gl/x3XQuL
interface IBaseInterface {
    void SomeMethod();
}
interface ISomeInterface : IBaseInterface {}
but the following code only returns an empty array.
var methods = typeof(ISomeInterface).Methods(Flags.InstanceAnyVisibility);
What am I doing wrong?
Thanks, Mattia

comments