Table of Contents

Namespace System.Diagnostics.CodeAnalysis

Classes

AllowNullAttribute

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

DisallowNullAttribute

Specifies that null is disallowed as an input even if the corresponding type allows it.

DoesNotReturnAttribute

Applied to a method that will never return under any circumstance.

DoesNotReturnIfAttribute

Specifies that the method will not return if the associated Boolean parameter is passed the specified value.

MaybeNullAttribute

Specifies that an output may be null even if the corresponding type disallows it.

MaybeNullWhenAttribute

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

MemberNotNullAttribute

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

MemberNotNullWhenAttribute

Specifies that the method or property will ensure that the listed field and property members have not-null values when returning with the specified return value condition.

NotNullAttribute

Specifies that an output will not be null even if the corresponding type allows it. Specifies that an input argument was not null when the call returns.

NotNullIfNotNullAttribute

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

NotNullWhenAttribute

Specifies that when a method returns ReturnValue, the parameter will not be null even if the corresponding type allows it.