Table of Contents

Class CallerArgumentExpressionAttribute

Namespace
System.Runtime.CompilerServices
Assembly
nanoFramework.System.Runtime.dll

Indicates that a parameter captures the expression passed for another parameter as a string.

[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)]
public sealed class CallerArgumentExpressionAttribute : Attribute
Inheritance
CallerArgumentExpressionAttribute
Inherited Members
Extension Methods

Constructors

CallerArgumentExpressionAttribute(string)

Initializes a new instance of the CallerArgumentExpressionAttribute class.

public CallerArgumentExpressionAttribute(string parameterName)

Parameters

parameterName string

The name of the parameter whose expression should be captured as a string.

Properties

ParameterName

Gets the name of the parameter whose expression should be captured as a string.

public string ParameterName { get; }

Property Value

string