Y yoshijg Dec 21, 2005 #1 Is there a way to retrieve a list of "Types" that exist within a given namespace? Some kind of reflection?
Is there a way to retrieve a list of "Types" that exist within a given namespace? Some kind of reflection?
J Jon Skeet [C# MVP] Dec 21, 2005 #2 yoshijg said: Is there a way to retrieve a list of "Types" that exist within a given namespace? Some kind of reflection? Click to expand... You can only do this on a per-assembly basis, because any number of assemblies can contribute to a namespace. Basically, iterate through all the types in an assembly (Assembly.GetTypes) and check the namespace for each type.
yoshijg said: Is there a way to retrieve a list of "Types" that exist within a given namespace? Some kind of reflection? Click to expand... You can only do this on a per-assembly basis, because any number of assemblies can contribute to a namespace. Basically, iterate through all the types in an assembly (Assembly.GetTypes) and check the namespace for each type.