MetalamaAPI documentationPost­Sharp API migrationPost­Sharp.​Aspects.​AdvicesAdvice­Parameter­Attribute
Open sandboxFocus

AdviceParameterAttribute Class

In Metalama, there is no declarative way to bind advice parameters. Instead, Metalama uses a programmatic approach, where the advice can get the desired value using the code model. In Metalama, template parameters can be marked as compile-time using CompileTimeAttribute, otherwise they are run-time. Run-time parameters must match the target parameter by name. Compile-time parameters must be supplied by the advice factory method (see IAdviceFactory).

Namespace: PostSharp.Aspects.Advices
Assembly: Metalama.Migration.dll
Syntax
public abstract class AdviceParameterAttribute : Attribute

Constructors

Name Description
AdviceParameterAttribute()

See Also