Imports System.Reflection
....
Public Function GetAllClassesInAssembly(ByVal asm As [Assembly]) As
Type()
Dim ret(-1) As Type
Dim counter As Integer = -1
For Each t As Type In asm.GetTypes
If t.IsClass Then
counter += 1
ReDim Preserve ret(counter)
ret(counter) = t
End If
Next
Return ret
End Function
"Friso Wiskerke" <fr***@pestaartje.nl> wrote in message
news:u9**************@tk2msftngp13.phx.gbl...
Hi all,
Is it possible in VB.NET to retrieve a list of available classes in the
current assembly?
I know that there are many things you can do with the System.Reflection
namespace, like dynamically creating an instance of a class, but I haven't
found anything which can help me in getting the info out of the assembly
what I want.
TIA,
Friso Wiskerke