Because of this issue here, I\'m trying to write a custom JsonConverter that handles cases where you subclass a list or a collection, then add extra properties to it. As such,
A lot of reflection functions accept a parameter of type BindingFlags. This enumeration includes a value DeclaredOnly:
Specifies that only members declared at the level of the supplied type's hierarchy should be considered. Inherited members are not considered.