NotNullWhenAttribute.ReturnValue Property

Definition

Gets the return value condition.

C#
public bool ReturnValue { get; }

Property Value

The return value condition. If the method returns this value, the associated parameter will not be null.

Applies to

Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.1