What does Assembly.GetExportedTypes() do? How is it different from Assembly.GetTypes()
Can you explain with example?
GetExportedTypes() does not include protected/private/internal types. As per the question linked in Alexander's question below, internal types are not included even if would be visible to an assembly via InternalsVisibleToAttribute.
GetTypes() includes all types.
GetExportedTypes()
returns only types which are visible outside the assembly in question. "Visible" means public types and public types nested within other public types.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With