Mono Class Library: System.Reflection.Assembly Overview | Members

System.Reflection.Assembly.GetCallingAssembly Method

Gives the Assembly of the method which invoked the currently running method. [Edit]

public static Assembly GetCallingAssembly ()

Returns

Assembly of the method which invoked the calling method. [Edit]

Remarks

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]

Requirements

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0