PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects Namespace / Null­Task­Sentinel Class / Null­Task­Sentinel Properties / Null­Task­Sentinel.​Instance Property

NullTaskSentinel.Instance Property

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.

Namespace:  PostSharp.Aspects
Assembly:  PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
public static NullTaskSentinel Instance { get; }

Property Value

Type: NullTaskSentinel
See Also