// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace System.Runtime.CompilerServices;
///
/// An attribute that allows parameters to receive the expression of other parameters.
///
/// Internal copy from the BCL attribute.
[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)]
internal sealed class CallerArgumentExpressionAttribute : Attribute
{
///
/// Initializes a new instance of the class.
///
/// The condition parameter value.
public CallerArgumentExpressionAttribute(string parameterName) => ParameterName = parameterName;
///
/// Gets the parameter name the expression is retrieved from.
///
public string ParameterName { get; }
}