Mega Code Archive

 
Categories / VB.Net / Reflection
 

Module Name gets a String representing the name of the module with the path removed

Imports System.Reflection Imports System Public Class Simple     Public Shared Sub Main()         Dim myMod As System.Reflection.Module = [Assembly].GetExecutingAssembly().GetModules()(0)         Console.WriteLine("Module Name is " + myMod.Name)         Console.WriteLine("Module FullyQualifiedName is " + myMod.FullyQualifiedName)         Console.WriteLine("Module ScopeName is " + myMod.ScopeName)     End Sub End Class