/ Published in: VB.NET
Expand |
Embed | Plain Text
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
You need to login to post a comment.
