Add an alias for the primary constructor #7720
Unanswered
Mr0N
asked this question in
Language Ideas
Replies: 2 comments 13 replies
-
How does that make it different from any other identifier in C#? |
Beta Was this translation helpful? Give feedback.
13 replies
-
That is, the main name is displayed for the main user, and aliases are available only for the implementation of the class |
Beta Was this translation helpful? Give feedback.
0 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.
-
I liked the primary constructor more or less, but there is a problem that the external API depends on the internal implementation. That is, if you change the name of the constructor parameters, the entire logic of the program will break. I suggest adding aliases for the constructor parameters.
Beta Was this translation helpful? Give feedback.
All reactions