How to load a module through an assembly

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Dear Friends,

I'm able to create a class type from a non-referenced assembly using the
LoadFrom and CreateInstance methods of the Assembly type.
But how can I load a module from a corresponding ".dll" using assembly ?
Please anyone help me.

Thanking you,

Regards,
Arun.
 
Arun said:
I'm able to create a class type from a non-referenced assembly using the
LoadFrom and CreateInstance methods of the Assembly type.
But how can I load a module from a corresponding ".dll" using assembly ?

Modules are classes which are marked with a certain attribute. Check out
the exact structure using "ILDASM.EXE" or Lutz Roeder's Reflector.
 
Arun said:
Dear Friends,

I'm able to create a class type from a non-referenced assembly using the
LoadFrom and CreateInstance methods of the Assembly type.
But how can I load a module from a corresponding ".dll" using assembly ?
Please anyone help me.


A module is an imported class with shared methods only, so you can't call
CreateInstance, but after retrieving the System.Type object, you can call
InvokeMember (or other methods) to access the type's shared members.


Armin
 
Back
Top