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

TransformationContext Class

Context information of a transformation pipeline.
Inheritance Hierarchy
System.Object
  PostSharp.Sdk.AspectInfrastructure.TransformationContext
    PostSharp.Sdk.AspectInfrastructure.MethodBodyTransformationContext

Namespace:  PostSharp.Sdk.AspectInfrastructure
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
public class TransformationContext : ICloneable

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.
Methods
  NameDescription
Public methodClone
Creates a new object that is a copy of the current instance.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
See Also