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