Assembly.GetExportedTypes vs GetTypes

后端 未结 3 1854
萌比男神i
萌比男神i 2020-12-20 11:23

What does Assembly.GetExportedTypes() do? How is it different from Assembly.GetTypes()

Can you explain with example?

3条回答
  •  春和景丽
    2020-12-20 11:54

    GetExportedTypes() returns only types which are visible outside the assembly in question. "Visible" means public types and public types nested within other public types.

提交回复
热议问题