You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
725 B
25 lines
725 B
// 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
|
|
{
|
|
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Property, Inherited = false, AllowMultiple = true)]
|
|
internal sealed class MemberNotNullWhenAttribute : Attribute
|
|
{
|
|
public bool ReturnValue { get; }
|
|
|
|
public string[] Members { get; }
|
|
|
|
public MemberNotNullWhenAttribute(bool returnValue, string member)
|
|
{
|
|
ReturnValue = returnValue;
|
|
Members = new string[1] { member };
|
|
}
|
|
|
|
public MemberNotNullWhenAttribute(bool returnValue, params string[] members)
|
|
{
|
|
ReturnValue = returnValue;
|
|
Members = members;
|
|
}
|
|
}
|
|
}
|