CallerArgumentExpressionAttribute Class

Summary

Allows capturing of the expressions passed to a method.
Namespace
System.Runtime.CompilerServices
Base Types
  • object
  • Attribute
graph BT Type-->Base0["Attribute"] Base0-->Base1["object"] Type["CallerArgumentExpressionAttribute"] class Type type-node

Syntax

[AttributeUsage(AttributeTargets.Parameter)]
public sealed class CallerArgumentExpressionAttribute : Attribute

Attributes

Type Description
AttributeUsageAttribute

Constructors

Name Summary
CallerArgumentExpressionAttribute(string) Initializes a new instance of the CallerArgumentExpressionAttribute class.

Properties

Name Value Summary
ParameterName string
Gets the target parameter name of the CallerArgumentExpression.

Extension Methods

Name Value Summary
GetProperties() IEnumerable<KeyValuePair<string, string>>
NotNull<CallerArgumentExpressionAttribute>(string) T
GitHub