问题
Possible Duplicate:
Assembly.GetExportedTypes vs GetTypes
Are internal types visible when a call is made to Assembly.GetExportedTypes()? If not, then does the call being made from an assembly with an InternalsVisibleToAttribute change the behavior?
回答1:
GetTypes returns all the types in the assembly while GetExportedTypes returns only the types marked as public, i.e.:
public class A
would be returned by both methods
class B
would only be returned by GetExportedTypes
来源:https://stackoverflow.com/questions/5384975/are-internal-types-visible-from-assembly-getexportedtypes