//
#pragma warning disable
#nullable enable annotations
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace System.Diagnostics.CodeAnalysis
{
///
/// Specifies that when a method returns , the parameter may be null even if the corresponding type disallows it.
///
[global::System.AttributeUsage(global::System.AttributeTargets.Parameter, Inherited = false)]
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public sealed class MaybeNullWhenAttribute : global::System.Attribute
{
///
/// Initializes the attribute with the specified return value condition.
///
/// The return value condition. If the method returns this value, the associated parameter may be null.
public MaybeNullWhenAttribute(bool returnValue) => ReturnValue = returnValue;
///
/// Gets the return value condition.
///
public bool ReturnValue { get; }
}
}