Open sandboxFocus

Class FieldLevelAspect

In Metalama, use FieldOrPropertyAspect.

Inheritance
FieldLevelAspect
Namespace: PostSharp.Aspects
Assembly: Metalama.Migration.dll
Syntax
[Obsolete("In Metalama, use 'FieldOrPropertyAspect'.", false)]
public abstract class FieldLevelAspect : Aspect, IFieldLevelAspect, IAspect, IFieldLevelAspectBuildSemantics, IAspectBuildSemantics, IValidableAnnotation

Constructors

Name Description
FieldLevelAspect()

Methods

Name Description
CompileTimeInitialize(FieldInfo, AspectInfo)

In Metalama, aspect initialization is done in BuildAspect(IAspectBuilder<T>).

CompileTimeValidate(object)

In Metalama, validation is done in BuildEligibility(IEligibilityBuilder<T>) and BuildAspect(IAspectBuilder<T>). The equivalent of returning false is to call SkipAspect().

CompileTimeValidate(FieldInfo)

In Metalama, validation is done in BuildEligibility(IEligibilityBuilder<T>) and BuildAspect(IAspectBuilder<T>). The equivalent of returning false is to call SkipAspect().

RuntimeInitialize(FieldInfo)

In Metalama, add an initializer from the BuildAspect(IAspectBuilder<T>) method by calling builder.Advice.AddInitializer(INamedType, string, InitializerKind, object?, object?).

SetAspectConfiguration(AspectConfiguration, object)

Not supported in Metalama.

SetAspectConfiguration(AspectConfiguration, FieldInfo)

Not supported in Metalama.