31 lines
1.2 KiB
C#
31 lines
1.2 KiB
C#
// <auto-generated/>
|
|
#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.Runtime.CompilerServices
|
|
{
|
|
/// <summary>
|
|
/// An attribute that allows parameters to receive the expression of other parameters.
|
|
/// </summary>
|
|
[global::System.AttributeUsage(global::System.AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)]
|
|
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
|
|
public sealed class CallerArgumentExpressionAttribute : global::System.Attribute
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="global::System.Runtime.CompilerServices.CallerArgumentExpressionAttribute"/> class.
|
|
/// </summary>
|
|
/// <param name="parameterName">The condition parameter value.</param>
|
|
public CallerArgumentExpressionAttribute(string parameterName)
|
|
{
|
|
ParameterName = parameterName;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the parameter name the expression is retrieved from.
|
|
/// </summary>
|
|
public string ParameterName { get; }
|
|
}
|
|
} |