Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 2
    +1 for the correct answer. AppDomain.CurrentDomain.GetAssemblies can be helpful. Commented May 12, 2013 at 4:20
  • ...and then loop through them, filtering out ones that don't match the namespace. Commented Jun 29, 2015 at 7:04
  • OP specifically asked for "classes in a namespace", whereas this gets you "types in an assembly" - so this answer is incomplete. The correct answer is probably this one, which enumerates classes only, from all assemblies. Commented Apr 14, 2020 at 10:18