Get Class Name in Current Assembly : Assembly « Reflection « VB.Net
- VB.Net
- Reflection
- Assembly
Get Class Name in Current Assembly

Imports System.Reflection
Class A
End Class
Class B
End Class
Class C
End Class
Class D
End Class
Public Class MainClass
Public Shared Sub Main()
Dim ThisAssembly As [Assembly] = [Assembly].GetExecutingAssembly()
Dim TypeObj As Type
For Each TypeObj In ThisAssembly.GetTypes()
Console.WriteLine(TypeObj.Name)
Next
End Sub
End Class
Related examples in the same category