I have a class that is derived from an abstract class. Getting a type of a derived class I want to find out which properties are inherited from abstract class and which were dec
You can check based on the DeclaringType as below:
DeclaringType
var pros = typeof(MsClass).GetProperties() .Where(p => p.DeclaringType == typeof(MsClass));
To get properties from base class you can call similarly:
var pros = typeof(MsClass).GetProperties() .Where(p => p.DeclaringType == typeof(BaseMsClass));