System.Reflection.Assembly.GetExecutingAssembly Method

Gets the assembly that contains the code that is currently executing.

Syntax

public static Assembly GetExecutingAssembly ()

Returns

The assembly that contains the code that is currently executing.

Remarks

To get the assembly that contains the method that called the currently executing code, use Assembly.GetCallingAssembly.

Requirements

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