Mono Class Library: System.Reflection.Assembly Overview | MembersSystem.Reflection.Assembly.GetCallingAssembly Method |
Gives the Assembly of the method which invoked the currently running method. [Edit]
|
Assembly of the method which invoked the calling method. [Edit]
If method A invokes method B, and method B calls Assembly.GetExecutingAssembly() then the result is the assembly of method A. In other words, this is useful for things like performing reflection on a user of some utility class you are writing. It does NOT return the "current" assembly of your own code! For that, try Assembly.GetAssembly(this) [Edit]
Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0