Posted By

mooparmghor on 12/25/10


Tagged

paths


Versions (?)

Get References Path


 / Published in: VB.NET
 

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

  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  

You need to login to post a comment.