PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Aspect­Infrastructure Namespace / Transformation­Context Class / Transformation­Context Properties

TransformationContext Properties

The TransformationContext type exposes the following members.

Properties
  NameDescription
Public propertyMethodSemantic
Gets the semantic of the method being transformed, if the method is a member of an event or a property.
Public propertyMustAddSymJoinPoint
Determines whether the current transformation is expected to add a join point symbol.
Public propertyOrdinal
Gets the ordinal of the current transformation in the transformation pipeline.
Public propertyOriginalTargetElement
Gets the element of code to which the transformation pipeline was originally applied. The pipeline may have redirected, created a new element of code in replacement of the original one. In this case, this property contains the original element of code, and the TargetElement property contains the replacement element of code.
Public propertyTargetElement
Gets the element of code being currently transformed by the transformation pipeline. The pipeline may have created a new element of code in replacement of the original one. In this case, the OriginalTargetElement property contains the original element of code, and the current property contains the replacement element of code.
Public propertyTransversalState
Gets an object allowing transformations to share state between pipelines targeting different methods of the same property or event.
See Also