TransformationContext Class |
Context information of a transformation pipeline.
System.Object
PostSharp.Sdk.AspectInfrastructure.TransformationContext
PostSharp.Sdk.AspectInfrastructure.MethodBodyTransformationContext
PostSharp.Sdk.AspectInfrastructure.TransformationContext
PostSharp.Sdk.AspectInfrastructure.MethodBodyTransformationContext
Namespace: PostSharp.Sdk.AspectInfrastructure
Assembly: PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public class TransformationContext : ICloneable
The TransformationContext type exposes the following members.
Name | Description | |
---|---|---|
MethodSemantic |
Gets the semantic of the method being transformed, if the method is a member of an event or a property.
| |
MustAddSymJoinPoint |
Determines whether the current transformation is expected to add a join point symbol.
| |
Ordinal |
Gets the ordinal of the current transformation in the transformation pipeline.
| |
OriginalTargetElement |
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.
| |
TargetElement |
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.
| |
TransversalState |
Gets an object allowing transformations to share state between pipelines targeting different methods of the same
property or event.
|
Name | Description | |
---|---|---|
Clone | Creates a new object that is a copy of the current instance. | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |