Open sandboxFocus

Interface IOnInstanceLocationInitializedAspect

There is no equivalent of this aspect in Metalama because Metalama rewrites the code in such a way that field or property initializations go through the overridden setter. This is done by moving the initializers to the constructor, where it is safe to call the aspect.

Namespace: PostSharp.Aspects
Assembly: Metalama.Migration.dll
Syntax
[Obsolete("There is no equivalent of this aspect in Metalama because Metalama rewrites the code in such a way that field or property initializations go through the overridden setter. This is done by moving the initializers to the constructor, where it is safe to call the aspect.", false)]
public interface IOnInstanceLocationInitializedAspect : ILocationLevelAspect, IAspect

Methods

Name Description
OnInstanceLocationInitialized(LocationInitializationArgs)

There is no equivalent in Metalama because field and property initializers go through the overridden setter.

Extension Methods