Get References Path

/ Published in: VB.NET
Save to your folder(s)

Copy this code and paste it in your HTML
  1. Public Shared Function GetAssemplyPath(ByVal type As Object) As String
  2. '(Useful to get the path of references)
  3. 'Pass an object of a type exists in the assembly you want to
  4. 'get its path, and it will return the location of the assembly.
  5. 'ex : GetAssemplyPath(New System.Collections.Generic.HashSet(Of String)) 'To get the path for "System.Core.dll”
  6. Return (type.GetType().Assembly.Location())
  7. End Function


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.