devxlogo

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

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

' Check whether a specified file is a .NET assemblyFunction 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 TryEnd Function

devx-admin

Share the Post: