A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.codeanalysis.notnullwhenattribute below:

NotNullWhenAttribute Class (System.Diagnostics.CodeAnalysis) | Microsoft Learn

NotNullWhenAttribute Class Definition

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

public ref class NotNullWhenAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Parameter, Inherited=false)]
public sealed class NotNullWhenAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Parameter, Inherited=false)>]
type NotNullWhenAttribute = class
    inherit Attribute
Public NotInheritable Class NotNullWhenAttribute
Inherits Attribute
Inheritance
Attributes

For more information, see Nullable static analysis in the C# guide.

Constructors Properties Methods See also

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this article

Was this page helpful?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4