Table of Contents

Class AllowNullAttribute

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

Specifies that null is allowed as an input even if the corresponding type disallows it.

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

Remarks

To override a method that has a parameter annotated with this attribute, use the ? operator. For more information, see Nullable static analysis in the C# guide.

Constructors

AllowNullAttribute()

public AllowNullAttribute()