namespace System.Runtime.CompilerServices; /// /// Indicates which arguments to a method involving an interpolated string handler should be passed to that handler. /// [AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)] public sealed class InterpolatedStringHandlerArgumentAttribute : Attribute { /// /// Initializes a new instance of the class. /// /// The name of the argument that should be passed to the handler. /// may be used as the name of the receiver in an instance method. public InterpolatedStringHandlerArgumentAttribute(string argument) => Arguments = new string[] { argument }; /// /// Initializes a new instance of the class. /// /// The names of the arguments that should be passed to the handler. /// may be used as the name of the receiver in an instance method. public InterpolatedStringHandlerArgumentAttribute(params string[] arguments) => Arguments = arguments; /// /// Gets the names of the arguments that should be passed to the handler. /// /// may be used as the name of the receiver in an instance method. public string[] Arguments { get; } }