Mega Code Archive

 
Categories / VB.Net / Reflection
 

Assembly Location Property gets the path or UNC location of the loaded file that contains the manifest

Imports System Imports System.Reflection Class Class1     Public Shared Sub Main()         Dim SampleAssembly As [Assembly]         Dim Integer1 As New Int32()         Dim Type1 As Type         Type1 = Integer1.GetType()         SampleAssembly = [Assembly].GetAssembly(Integer1.GetType())         Console.WriteLine(("Location=" + SampleAssembly.Location))     End Sub  End Class