Open sandboxFocus

Method OverrideMethod

OverrideMethod()

The default template for overriding method implementations.

Declaration
public override dynamic? OverrideMethod()
Returns
Type Description
dynamic

The return value of the method. Use dynamic? to support any return type.

Overrides
Remarks

This is the primary template method that must be implemented in derived aspects. It is used for all methods where a more specific template (OverrideAsyncMethod(), OverrideEnumerableMethod(), OverrideEnumeratorMethod(), OverrideAsyncEnumerableMethod, or OverrideAsyncEnumeratorMethod) does not apply or has not been overridden.

Within the template, use meta.Proceed() to invoke the original method implementation, and meta.Target to access information about the target method.