NullTaskSentinel Class |
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 (in PostSharp.dll) Version: 6.1.23.0 (6.1.23.0)

C#
public sealed class NullTaskSentinel
The NullTaskSentinel type exposes the following members.

Name | Description | |
---|---|---|
![]() | NullTaskSentinel | Initializes a new instance of the NullTaskSentinel class |

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.
|

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.
