NotNullIfNotNullAttribute(String) Constructor

Definition

Initializes the attribute with the associated parameter name.

C#
public NotNullIfNotNullAttribute(string parameterName);

Parameters

parameterName
String

The associated parameter name. The output will be non-null if the argument to the parameter specified is non-null.

Applies to

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