Return to Snippet

Revision: 38097
at December 25, 2010 03:56 by mooparmghor


Updated Code
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

Revision: 38096
at December 25, 2010 03:55 by mooparmghor


Updated Code
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))
    Return (type.GetType().Assembly.Location())
End Function

Revision: 38095
at December 25, 2010 03:54 by mooparmghor


Updated Code
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))
            Return (type.GetType().Assembly.Location())
End Function

Revision: 38094
at December 25, 2010 03:54 by mooparmghor


Initial Code
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))
            Return (type.GetType().Assembly.Location())
        End Function

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

Initial Description


Initial Title
Get References Path

Initial Tags


Initial Language
VB.NET