Use the overload of GetProperties
where you can specify a BindingFlags
argument and ensure BindingFlags.Static
is included but BindingFlags.Instance
is excluded.
For example:
var flags = BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static;
var properties = member.GetType().GetProperties(flags);