这个dll中有很多的类,首先我要获得类的名称,然后获得每一个类的具体的信息,不知道该怎么做,请高手指教?

解决方案 »

  1.   

    你要获取什么信息呢!
    Ildasm.exe可以反编译你的dll
      

  2.   

    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