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

NullTransformationInstance Class

A transformation instance performing no transformation.
Inheritance Hierarchy
System.Object
  PostSharp.Sdk.AspectInfrastructure.NullTransformationInstance

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 sealed class NullTransformationInstance : IDependencyTransformationInstance, 
	ITransformationInstance, IAspectDependencyObject, IStructuralTransformationInstance, IPriorityAwareDependencyObject

The NullTransformationInstance type exposes the following members.

Properties
  NameDescription
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.
Methods
  NameDescription
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.)
Fields
  NameDescription
Public fieldStatic memberInstance
Singleton instance of NullTransformationInstance.
Remarks
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