Metalama / / API Documentation / Aspect API / Metalama.​Framework.​Aspects / IAspect­Builder / Aspect­State

Property AspectState

AspectState

Gets or sets an arbitrary object that is then exposed on the AspectState property of the IAspectInstance interface. While a single instance of an aspect class can be used for several target declarations, the AspectState is specific to the target declaration. If the aspect is inherited, the AspectState must be lama-serializable (ICompileTimeSerializable or default serializable classes).

Declaration
IAspectState AspectState { get; set; }
Property Value
Type Description
IAspectState