I need to programmatically get a List
of all the classes in a given namespace. How can I achieve this (reflection?) in C#?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Generic Generics in Managed C++
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
Take a look at this How to get all classes within namespace? the answer provided returns an array of Type[] you can modify this easily to return List
Without LINQ:
Try:
I can only think of looping through types in an assebly to find ones iin the correct namespace