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

URL: http://stackoverflow.com/questions/4526181/how-can-i-programmatically-get-the-path-of-system-core-dll-using-vb-net

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.