If I declare my own interface I can't get declared methods
public interface ITest
{
string TestProp { get; set; }
void TestMethod();
}
MethodInfo[] declaredMethods = typeof(ITest).GetDeclaredMethods();
//declaredMethods.Length == 0
MethodInfo[] methods = typeof(ITest).GetMethods();
//methods.Length == 0
If I try to get declared methods on some other interface (IEnumerable for example) it works just fine.
Can anyone help me understand what I'm doing wrong.
Thank you!