Search code examples
c#.netreflectionsystem.reflection

Are private members included in TypeInfo Declared properties?


Does the new TypeInfo class include private members by default in its "DeclaredXXX" properties?


Solution

  • It returns both private and public members. However only ones that are declared at that level, any inherited members etc. will not be returned.