Content from DLL file.

Posted by Abhi_patil under ASP.NET on 2/7/2009 | Views : 1360 | Status : [Member] | Replies : 1
I want to list out all the classes used in dll file. how i can do?


Posted by: Raja on: 2/8/2009 [Member] Starter

Use can use Reflection to do that.
System.Reflection.Assembly asm = System.Reflection.Assembly.LoadFrom( assemName );

Where assemName is the DLL filename.
You can then use reflection to query the assembly for types:

SysSystem.Reflection.Type[] types = asm.GetTypes();

Then you have access to all the type info.

You can use following article also to get help

Raja, USA

Abhi_patil, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response