Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: VB7
Expertise: beginner
Jun 16, 2003

IsAssembly - Check whether a specified file is a .NET assembly

' Check whether a specified file is a .NET assembly
Function IsAssembly(ByVal filename As String) As Boolean
    Try
        Dim asm As [Assembly] = [Assembly].LoadFrom(filename)
        ' if no exception is thrown, this is an assembly
        Return True
    Catch e As Exception
        Return False
    End Try
End Function
Marco Bellinaso
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date