NullTransformationInstance Class |
A transformation instance performing no transformation.
Namespace: PostSharp.Sdk.AspectInfrastructure
Assembly: PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public sealed class NullTransformationInstance : IDependencyTransformationInstance, ITransformationInstance, IAspectDependencyObject, IStructuralTransformationInstance, IPriorityAwareDependencyObject
The NullTransformationInstance type exposes the following members.
Name | Description | |
---|---|---|
Dependencies |
Gets the set of dependencies attached to the current object. The current object is the left member of all dependencies.
| |
IsCommutative |
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.
|
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetDisplayName |
Gets a human-readable string representing the current object.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
HasEffect |
Determines whether the current object has a given effect.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
Instance |
Singleton instance of NullTransformationInstance.
|
It has two purposes:
- to force the running of a TransformationPipeline even if there are no transformations, because the pipeline itself might have an effect;
- 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).