Open sandboxFocus

Class ImportLocationAdviceInstance

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

Inheritance
ImportLocationAdviceInstance
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 accesses a field or property, use 'IFieldOrProperty'.'IExpression.Value'.", false)]
public sealed class ImportLocationAdviceInstance : ImportMemberAdviceInstance

Constructors

Name Description
ImportLocationAdviceInstance(FieldInfo, LocationInfo)
ImportLocationAdviceInstance(FieldInfo, string, bool, ImportMemberOrder)
ImportLocationAdviceInstance(FieldInfo, string[], bool, ImportMemberOrder)

Properties

Name Description
Location
Member
MemberNames

Extension Methods

See Also