In Metalama, members of the target declaration do not need to be imported into the aspect. Instead, the aspect accesses the target code using dynamic code or invokers. To generate code that calls a method, use IMethod.Invoke(params dynamic?[]).
Namespace: PostSharp.Aspects.Advices
Assembly: Metalama.Migration.dll
Syntax
[Obsolete("In Metalama, members of the target declaration do not need to be imported into the aspect. Instead, the aspect accesses the target code using dynamic code or invokers. To generate code that calls a method, use 'IMethod'.'IMethodInvoker.Invoke(params dynamic?[])'.", false)]
public sealed class ImportMethodAdviceInstance : ImportMemberAdviceInstanceConstructors
| Name | Description |
|---|---|
| ImportMethodAdviceInstance(FieldInfo, string, bool, ImportMemberOrder) | |
| ImportMethodAdviceInstance(FieldInfo, string[], bool, ImportMemberOrder) |
Properties
| Name | Description |
|---|---|
| Member | |
| MemberNames |