Table of Contents

Class NotNullIfNotNullAttribute

Namespace
System.Diagnostics.CodeAnalysis
Assembly
nanoFramework.System.Runtime.dll

Specifies that the output will be non-null if the named parameter is non-null.

[AttributeUsage(AttributeTargets.Property|AttributeTargets.Parameter|AttributeTargets.ReturnValue, AllowMultiple = true, Inherited = false)]
public sealed class NotNullIfNotNullAttribute : Attribute
Inheritance
NotNullIfNotNullAttribute
Inherited Members
Extension Methods

Constructors

NotNullIfNotNullAttribute(string)

Initializes the attribute with the associated parameter name.

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.

Properties

ParameterName

Gets the associated parameter name.

public string ParameterName { get; }

Property Value

string