Class Class1 Public Shared Sub Main() Dim SampleAssembly As [Assembly] ' You must supply a valid fully qualified assembly name here. SampleAssembly = [Assembly].LoadFile("c:\adfasdf.dll") Dim Types As Type() = SampleAssembly.GetTypes() Dim oType As Type ' Display all the types contained in the specified assembly. For Each oType In Types Console.WriteLine(oType.Name.ToString()) Next oType End Sub 'LoadSample End Class 'Class1
Ildasm.exe可以反编译你的dll
Public Shared Sub Main()
Dim SampleAssembly As [Assembly]
' You must supply a valid fully qualified assembly name here.
SampleAssembly = [Assembly].LoadFile("c:\adfasdf.dll")
Dim Types As Type() = SampleAssembly.GetTypes()
Dim oType As Type
' Display all the types contained in the specified assembly.
For Each oType In Types
Console.WriteLine(oType.Name.ToString())
Next oType
End Sub 'LoadSample
End Class 'Class1