nameof and method parameter names #3191
Replies: 2 comments
-
Duplicate of #373? |
Beta Was this translation helpful? Give feedback.
-
Looks like #373 is less general and talks only about nameof of methods parametes used in attribute of that method. However having more general feature that adds possibility to use nameof for any methods' parameters like with I think there are many frameworks where stuff is more "stringly typed". For example in ASP.NET helpers for urls you need to provide the same name of parameter as your action method to generate proper url with working model binding. Just using |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
It would be great if NameOf could reference parameters from outside the scope:
Beta Was this translation helpful? Give feedback.
All reactions