Table of Contents

Class MemberNotNullAttribute

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

Specifies that the method or property will ensure that the listed field and property members have not-null values.

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

Constructors

MemberNotNullAttribute(string)

Initializes the attribute with a field or property member.

public MemberNotNullAttribute(string member)

Parameters

member string

The field or property member that is promised to be not-null.

MemberNotNullAttribute(params string[])

Initializes the attribute with the list of field and property members.

public MemberNotNullAttribute(params string[] members)

Parameters

members string[]

The list of field and property members that are promised to be not-null.

Properties

Members

Gets field or property member names.

public string[] Members { get; }

Property Value

string[]