CallerArgumentExpression for extension properties #9809
Unanswered
bartkemps
asked this question in
Language Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
While playing with C# 14 extension properties I stumbled upon a limitation.
While under the hood, extension properties are simply method calls, I found no way to use the utility attributes like
CallerArgumentExpression, introduced in C# 10.It would be of great value to be able to use these attributes to get caller information.
A possible implementation would be to allow:
Beta Was this translation helpful? Give feedback.
All reactions