To get all properties (public/private/protected/internal/static/instance) of a given Type someType
, you must access the base class by using someType.BaseType
.
Example:
PropertyInfo[] props = someType.BaseType.GetProperties(
BindingFlags.NonPublic | BindingFlags.Public
| BindingFlags.Instance | BindingFlags.Static)