How to get assembly info

P

P.Sunil

How to Get assembly information..
that means constructor info,properties,methods of an
assembly.
I heard that Assembly class can be used for this...
Please Let me know how to use this class.
Is it possible to find the info of an Assembly (i.e dlls)
that comes defaultly with .NET like
(System.dll,System.windows.forms.dll)


Please give an example...
 
C

Chris Taylor

Hi,

It sounds like you are looking for information on reflection. To get a list
of the types from an Assembly you can call the GetTypes method on the
Assembly. Give a type you can call the GetMember/GetMembers,
GetConstructor/GetConstructors, GetField/GetFields, GetMethod/GetMethods
etc. There are plenty of samples for these and many more funtions in the
MSDN documentation.

Hope this helps

Chris Taylor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top