MetalamaAPI documentationPost­Sharp API migrationPost­Sharp.​Aspects.​AdvicesImport­Member­Attribute
Open sandboxFocus

ImportMemberAttribute Class

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.. To generate code that accesses a field or property, use IFieldOrProperty. or IFieldOrProperty..Value.

Inheritance
ImportMemberAttribute
Namespace: PostSharp.Aspects.Advices
Assembly: Metalama.Migration.dll
Syntax
public sealed class ImportMemberAttribute : Advice

Constructors

Name Description
ImportMemberAttribute(String)
ImportMemberAttribute(String[])

Properties

Name Description
IsRequired
MemberNames
Order

See Also