How to find a Assembly Name

  • Thread starter Thread starter P.Sunil
  • Start date Start date
P

P.Sunil

I am a beginner to .net
How to find an Assembly Name of a .net class.
I want to use the assembly name with
System.Activator.CreateInstance(String AssemblyName,String
AssemblyName);
or else please let me know how to use this constructor
with an example
 
Use ildasm to view the contents of the assembly....
to run ildasm, goto visual studio .net command prompt
and type in ildasm
it is the intermediate language disassembler
 
P.Sunil said:
I am a beginner to .net
How to find an Assembly Name of a .net class.
I want to use the assembly name with
System.Activator.CreateInstance(String AssemblyName,String
AssemblyName);
or else please let me know how to use this constructor
with an example

Is this what you need?

this.GetType().Assembly . . . ?

or: typeof( <myType> ).Assembly

To get the assembly name of a class, try:

this.GetType().Assembly.GetName().Name
 

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

Back
Top