PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Aspect­Infrastructure Namespace / Method­Body­Transformation­Context Class / Method­Body­Transformation­Context Properties / Method­Body­Transformation­Context.​State­Machine Property

MethodBodyTransformationContext.StateMachine Property

Gets or sets additional information about the context. This additional information is only relevant for transformations that happen inside a MoveNext method of a state machine. This information is not deeply copied: This means that if you add two redirections while inside a MoveNext method, the result will be strange.

Namespace:  PostSharp.Sdk.AspectInfrastructure
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
public StateMachineTransformationContext StateMachine { get; }

Property Value

Type: StateMachineTransformationContext
See Also