Table of Contents

Class MaybeNullWhenAttribute

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

Specifies that when a method returns ReturnValue, the parameter may be null even if the corresponding type disallows it.

[AttributeUsage(AttributeTargets.Parameter, Inherited = false)]
public sealed class MaybeNullWhenAttribute : Attribute
Inheritance
MaybeNullWhenAttribute
Inherited Members
Extension Methods

Constructors

MaybeNullWhenAttribute(bool)

Initializes the attribute with the specified return value condition.

public MaybeNullWhenAttribute(bool returnValue)

Parameters

returnValue bool

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

Properties

ReturnValue

Gets the return value condition.

public bool ReturnValue { get; }

Property Value

bool