In Metalama, run-time advice parameters are matched by name, not by index. If you need to get a parameter by index,
use meta.Target.Parameters[index].Value.
from the template.
Namespace: PostSharp.Aspects.Advices
Assembly: Metalama.Migration.dll
Syntax
[Obsolete("In Metalama, run-time advice parameters are matched by name, not by index. If you need to get a parameter by index, use 'meta'.'meta.Target'.'IMetaTarget.Parameters'<c>[index]</c>.'IExpression.Value'. from the template.", false)]
public sealed class ArgumentAttribute : AdviceParameterAttributeConstructors
| Name | Description |
|---|---|
| ArgumentAttribute(int) |
Properties
| Name | Description |
|---|---|
| Index |