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
 
Back
Top