I'd like to list all method names from the underlyingtype.
I tried
var methods = this.GetType().UnderlyingSystemType.GetMethods();
but doesn't work.
EDIT
Added example
public class BaseClass
{
public BaseClass()
{
var methods = this.GetType().UnderlyingSystemType.GetMethods();
}
}
public class Class1:BaseClass
{
public void Method1()
{}
public void Method2()
{}
}
I need in the collection Method1 and Method 2.