Generate a list of classes in a given namespace?

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 :eek:)
 
F

Frank Drebin

Do you mean, like get the same list that intellisense uses? If so - the
System.Reflection namespace is where to start looking...
 
K

Kim Bach Petersen

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 :eek:)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top