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

NullTransformationInstance Class

A transformation instance performing no transformation.
Inheritance Hierarchy

Namespace:  PostSharp.Sdk.AspectInfrastructure
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
public sealed class NullTransformationInstance : IDependencyTransformationInstance, 
	ITransformationInstance, IAspectDependencyObject, IStructuralTransformationInstance, IPriorityAwareDependencyObject

The NullTransformationInstance type exposes the following members.

Public propertyDependencies
Gets the set of dependencies attached to the current object. The current object is the left member of all dependencies.
Public propertyIsCommutative
Determines whether the current object is commutative with any other object, irrespective of dependencies or effects. If yes, then PostSharp can apply it in any order with respect to other objects.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetDisplayName
Gets a human-readable string representing the current object.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHasEffect
Determines whether the current object has a given effect.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public fieldStatic memberInstance
Singleton instance of NullTransformationInstance.
It has two purposes:
  1. to force the running of a TransformationPipeline even if there are no transformations, because the pipeline itself might have an effect;
  2. as an intermediate step in some dependency chains (where the null transformation depends on some non-null transformation, and another non-null transformation depends on the null transformation, which orders that non-null transformation after all the previous non-null transformations).
See Also