Skip to content

Commit 3701565

Browse files
committed
Adding CallerArgumentExpressionAttribute to system types.
1 parent 037563a commit 3701565

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

.idea/.idea.PostSharp.Engineering/.idea/copilot.data.migration.agent.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/.idea.PostSharp.Engineering/.idea/copilot.data.migration.edit.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// Copyright (c) 2020-2025 SharpCrafters s.r.o. and contributors.
2+
// SharpCrafters s.r.o. licenses this file to you under either the MIT license or a proprietary license, depending on the repository from which it was obtained.
3+
// Refer to LICENSE.md in the repository root for complete details.
4+
5+
#if !NETCOREAPP
6+
using JetBrains.Annotations;
7+
8+
// ReSharper disable once CheckNamespace
9+
namespace System.Runtime.CompilerServices;
10+
11+
[AttributeUsage( AttributeTargets.Parameter )]
12+
internal sealed class CallerArgumentExpressionAttribute : Attribute
13+
{
14+
public CallerArgumentExpressionAttribute( string parameterName )
15+
{
16+
this.ParameterName = parameterName;
17+
}
18+
19+
[UsedImplicitly]
20+
public string ParameterName { get; }
21+
}
22+
23+
#endif

0 commit comments

Comments
 (0)