Assembly.GetExecutingAssembly() : Assembly « System.Reflection « VB.Net by API






Assembly.GetExecutingAssembly()

  
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

1.Assembly.CodeBase
2.Assembly.EntryPoint
3.Assembly.FullName
4.Assembly.GetCustomAttributes
5.Assembly.GetLoadedModules()
6.Assembly.GetManifestResourceNames()
7.Assembly.GetReferencedAssemblies()
8.Assembly.GetTypes()
9.Assembly.GlobalAssemblyCache
10.Assembly.Load
11.Assembly.Location