nameof(ArgumentName) #8193
Unanswered
TonyValenti
asked this question in
Language Ideas
Replies: 1 comment 3 replies
-
I'm curious as to why Print();
void Print(int size = sizeof(float)) =>
Console.WriteLine(size); |
Beta Was this translation helpful? Give feedback.
3 replies
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.
-
Hi C# Team,
Can you please enable using
nameof(ArgumentName)
in more places?Here is what I'd like to do:
[CallerArgumentExpression(nameof(Value))]
Actually works just fine.But
string? Key = nameof(Value)
does not.Beta Was this translation helpful? Give feedback.
All reactions