Getting the name of calling assembly

  • Thread starter Thread starter Gos
  • Start date Start date
G

Gos

Hi,

I have a DLL(say Test.DLL) which is being called by other DLLs in my
application. I want to know which DLL is calling my Test.DLL. I want
to get the name of the calling assembly within my Test.DLL. How can I
do this?

Thanks a lot.
Eric.
 
Hello,

Gos said:
I have a DLL(say Test.DLL) which is being called by other
DLLs in my application. I want to know which DLL is calling
my Test.DLL. I want to get the name of the calling assembly
within my Test.DLL. How can I do this?

Have a look at the 'System.Reflection.Assembly.GetCallingAssembly' method.
 

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