The singleton instance of this class is assigned to the ReturnValue property when an OnMethodBoundaryAspect aspect is applied semantically to a method and the target method returns a null task.
Namespace: PostSharp.Aspects
Assembly: PostSharp.dll
Syntax
public sealed class NullTaskSentinel
Remarks
When an OnMethodBoundaryAspect aspect is applied semantically to a method, then the ReturnValue property represents the result of executing the task returned by the method. If the method returns a null task, then the result is undefined. The Instance is used to represent this case.
Constructors
Name | Description |
---|---|
NullTaskSentinel() |
Properties
Name | Description |
---|---|
Instance | The singleton instance that is assigned to the ReturnValue property when an OnMethodBoundaryAspect aspect is applied semantically to a method and the target method returns a null task. |