Content from DLL file.

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




Responses

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

Up
0
Down
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 http://www.dreamincode.net/code/snippet1539.htm

Regards,
Raja, USA

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

Login to post response