Open sandboxFocus

Enum InvokerOptions

Options that influence the behavior of invokers, i.e. IMethodInvoker, IFieldOrPropertyInvoker, IEventInvoker or IIndexerInvoker.

Namespace: Metalama.Framework.Code.Invokers
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
[Flags]
public enum InvokerOptions

Fields

Name Description
Base

Generates calls to the base implementation, i.e. before any override or introduction by the current aspect layer.

Current

Generates calls to the current implementation, i.e. after all overrides or introductions by the current aspect layer, but before any next aspect layer or any derived type.

Default

When the invoked member is the target member of the current template (i.e. meta.Target.Declaration), and when no target instance or type is explicitly specified, for the invoker, equivalent to Base. Otherwise, equivalent to Final.

Final

Causes the final implementation to be called, i.e. the implementation after all overrides by aspects and, if the member is virtual, by derived classes through the override keyword.

NullConditional

Specifies that the null-conditional member access operator (?) has to be used.

NullConditionalIfNullable

Specifies that the null-conditional access operator (?) should be used, but only if the type is known to be nullable.

NullabilityMask

Mask for bits that encode nullability access, i.e. NullConditional, NullConditionalIfNullable, SuppressNullableWarning and SuppressNullableWarningIfNullable.

OrderMask

Mask for bits that encode order values, i.e. Current, Base or Final.

SuppressNullableWarning

Specifies that the nullable-warning-suppression operator (!) should be used.

SuppressNullableWarningIfNullable

Specifies that the nullable-warning-suppression operator (!) should be used, but only if the type is known to be nullable.

See Also