// Copyright (c) Microsoft. All rights reserved. using System.Diagnostics.CodeAnalysis; namespace System.Runtime.CompilerServices; /// /// Tags parameter that should be filled with specific caller name. /// [AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)] [ExcludeFromCodeCoverage] internal sealed class CallerArgumentExpressionAttribute : Attribute { /// /// Initializes a new instance of the class. /// /// Function parameter to take the name from. public CallerArgumentExpressionAttribute(string parameterName) { this.ParameterName = parameterName; } /// /// Gets name of the function parameter that name should be taken from. /// public string ParameterName { get; } }