Assemby name

  • Thread starter Thread starter SS
  • Start date Start date
S

SS

I have a webApp say A,It refernces a dll say B.From B is
it possible to get the Assembly name (A).ie..is it
possible to get the Assemby name A from B...please help
 
An assembly has no way of finding the assemblies that reference it.
But from an assembly, you can find out what assembly is calling into it at a
particular point in time.
To be a bit clearer, you can define a method in your assembly B that will
(using the Assembly.GetCallingAssembly()) find out what assembly has called
it.

HTH
 
Back
Top