AlexFM
asked on
Get Module of class library
I need to find Module reference of class library where code is executed.
For example, Assembly.GetExecutingAssem bly.GetMod ules gives list of all modules in the current process, and I need only current Dll module.
For example, Assembly.GetExecutingAssem
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
that is the big difference between you and me, i need to learn a lot seeing that this is the same as the current class :)
since i was curious what would happen actually used it on the curAssembly like
curAssembly.GetType().Modu le which came back with mscorlib.dll
and
this.GetType().Module gave the name of the module as you said
since i was curious what would happen actually used it on the curAssembly like
curAssembly.GetType().Modu
and
this.GetType().Module gave the name of the module as you said
ASKER
I need this to get unmanaged HNODULE handle in C++/CLI project. I will test this code later when C++ code will be ready.