Generate a list of classes in a given namespace?

  • Thread starter Thread starter Kim Bach Petersen
  • Start date Start date
K

Kim Bach Petersen

Is it possible to generate a list of classes within a namespace?

Fx as a function of the name of the namespace, returning an array or the
like:

Function GetClasses(strNamespace As String) As Arraylist
...
End Function


TIA, Kim :o)
 
Do you mean, like get the same list that intellisense uses? If so - the
System.Reflection namespace is where to start looking...
 
Frank said:
Do you mean, like get the same list that intellisense uses?

Yes. (or so I guess, but I'm not using VS, so I'm not quite sure...)
If so - the System.Reflection namespace is where to start looking...

I got that far, but it not easy to see through the rather minimalistic
descriptions in the documentation - as far as I can see, there no easy way,
like simple calling a method.

Kim :o)
 
Back
Top