/ Published in: VB.NET
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
Public Shared Function GetAssemplyPath(ByVal type As Object) As String '(Useful to get the path of references) 'Pass an object of a type exists in the assembly you want to 'get its path, and it will return the location of the assembly. 'ex : GetAssemplyPath(New System.Collections.Generic.HashSet(Of String)) 'To get the path for "System.Core.dll†Return (type.GetType().Assembly.Location()) End Function