PostSharp6.6//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: (
public static NullTaskSentinel Instance { get; }

Property Value

Type: NullTaskSentinel
See Also