first commit
This commit is contained in:
14
NitroxModel/CallerArgumentExpressionAttribute.cs
Normal file
14
NitroxModel/CallerArgumentExpressionAttribute.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
#if NETFRAMEWORK
|
||||
namespace System.Runtime.CompilerServices;
|
||||
|
||||
[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)]
|
||||
internal sealed class CallerArgumentExpressionAttribute : Attribute
|
||||
{
|
||||
public CallerArgumentExpressionAttribute(string parameterName)
|
||||
{
|
||||
ParameterName = parameterName;
|
||||
}
|
||||
|
||||
public string ParameterName { get; }
|
||||
}
|
||||
#endif
|
Reference in New Issue
Block a user