class A
{
public string PropA {set; get;}
public A()
{
var props = this.GetType().GetProperties(BindingFlags.Public);
}
}
class B : A
{
public string PropB {set; get;}
}
var b = new B();
When A constructor is called, variable props contains only PropA. It’s possible to get all properties (PropA and PropB)?
This one works for me: