Method
Gets the method being executed.
Declaration
public MethodBase Method { get; set; }Property Value
| Type | Description |
|---|---|
| MethodBase |
Remarks
If the executed method is generic or if its declaring type is generic, the current property contains the generic instance being executed.
note
Using this property causes the aspect weaver to generate code that has non-trivial runtime overhead. Avoid using this property whenever possible. One possible solution is to use compile-time initialization of aspect instances and to make use of reflection only at build time. See CompileTimeInitialize(MethodBase, AspectInfo) for details.
note
As a result of weaving optimizations, the value of this property may appear as null in a debugger.
If you need to inspect the value at runtime, consider disabling aspect optimizations in the debug build configuration.